diff options
author | David Gageot <david@gageot.net> | 2015-05-12 10:42:31 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2015-05-12 14:33:41 +0200 |
commit | 7d5701e0a327448484ccee968e12ae3d9162d407 (patch) | |
tree | 48765dedbd2125480a531d71e30801ee44d8bce9 /sonar-plugin-api/src/test | |
parent | 4bab89867b0484fa9d21d0d54e6d7687d2b2f5bf (diff) | |
download | sonarqube-7d5701e0a327448484ccee968e12ae3d9162d407.tar.gz sonarqube-7d5701e0a327448484ccee968e12ae3d9162d407.zip |
Useless code
Diffstat (limited to 'sonar-plugin-api/src/test')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/measures/PropertiesBuilderTest.java | 8 | ||||
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/user/UserQueryTest.java | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/measures/PropertiesBuilderTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/measures/PropertiesBuilderTest.java index d540ddb1a61..f7e89fd07f3 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/measures/PropertiesBuilderTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/measures/PropertiesBuilderTest.java @@ -27,7 +27,7 @@ import org.junit.Test; public class PropertiesBuilderTest { @Test public void buildMeasure() { - PropertiesBuilder<Integer, Integer> builder = new PropertiesBuilder<Integer, Integer>(CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION); + PropertiesBuilder<Integer, Integer> builder = new PropertiesBuilder<>(CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION); Measure measure = builder .add(1, 30) .add(2, 27) @@ -39,7 +39,7 @@ public class PropertiesBuilderTest { @Test public void sortKeys() { - PropertiesBuilder<String, String> builder = new PropertiesBuilder<String, String>(CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION); + PropertiesBuilder<String, String> builder = new PropertiesBuilder<>(CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION); Measure measure = builder .add("foo", "fooooo") .add("bar", "baaaaar") @@ -51,7 +51,7 @@ public class PropertiesBuilderTest { @Test public void valueIsOptional() { - PropertiesBuilder<String, String> builder = new PropertiesBuilder<String, String>(CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION); + PropertiesBuilder<String, String> builder = new PropertiesBuilder<>(CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION); Measure measure = builder .add("foo", null) .add("bar", "bar") @@ -63,7 +63,7 @@ public class PropertiesBuilderTest { @Test public void clearBeforeBuildingOtherMeasure() { - PropertiesBuilder<String, String> builder = new PropertiesBuilder<String, String>(CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION); + PropertiesBuilder<String, String> builder = new PropertiesBuilder<>(CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION); builder .add("foo", "foo") .add("bar", "bar") diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/user/UserQueryTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/user/UserQueryTest.java index fa36ab4986b..ddc5e569528 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/user/UserQueryTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/user/UserQueryTest.java @@ -56,7 +56,7 @@ public class UserQueryTest { @Test public void should_limit_number_of_logins() { - List<String> logins = new ArrayList<String>(); + List<String> logins = new ArrayList<>(); for (int i = 0; i < 1010; i++) { logins.add(String.valueOf(i)); } |