aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api/src/test')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/measures/PropertiesBuilderTest.java8
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/user/UserQueryTest.java2
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));
}