diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2021-01-21 17:48:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-01-21 17:48:52 +0000 |
commit | 21578649ae0fe26b4a9cc8dc5f90d0d6a3c6cef6 (patch) | |
tree | 151a1860d68a8fc89e1b4026686a2024059be555 | |
parent | 961356b1c9b2a9b4db2dd58e4d8ca44690c9cf36 (diff) | |
parent | 2b862dc5d3dbf3844504660f4800d2f65a79e3dc (diff) |
Merge "Add checkstyle rule for unused imports"
-rw-r--r-- | checkstyle/src/main/resources/cps-java-style.xml | 1 | ||||
-rwxr-xr-x | cps-ri/src/test/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceTest.java | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/checkstyle/src/main/resources/cps-java-style.xml b/checkstyle/src/main/resources/cps-java-style.xml index ebb9a19e67..67b2863695 100644 --- a/checkstyle/src/main/resources/cps-java-style.xml +++ b/checkstyle/src/main/resources/cps-java-style.xml @@ -30,5 +30,6 @@ <property name="tokens" value="VARIABLE_DEF,PARAMETER_DEF"/> <property name="validateEnhancedForLoopVariable" value="true"/> </module> + <module name="UnusedImports"/> </module> </module>
\ No newline at end of file diff --git a/cps-ri/src/test/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceTest.java b/cps-ri/src/test/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceTest.java index 050ee265a5..0705fc4e61 100755 --- a/cps-ri/src/test/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceTest.java +++ b/cps-ri/src/test/java/org/onap/cps/spi/impl/CpsModulePersistenceServiceTest.java @@ -50,10 +50,8 @@ import org.onap.cps.spi.repository.YangResourceRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.jdbc.Sql; -import org.springframework.test.context.jdbc.SqlGroup; import org.springframework.test.context.junit4.SpringRunner; - @RunWith(SpringRunner.class) @SpringBootTest public class CpsModulePersistenceServiceTest { |