From a1d9480ac376955a23c3b23e6237a587139d86bb Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 2 Sep 2015 14:12:34 +0200 Subject: Fix quality flaws --- .../src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java | 1 - .../src/main/java/org/sonar/api/profiles/ProfileExporter.java | 2 +- .../src/main/java/org/sonar/api/profiles/ProfileImporter.java | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'sonar-plugin-api/src') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java index bae6ea57511..561cded1c40 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java @@ -27,7 +27,6 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Properties; import javax.annotation.CheckForNull; -import javax.annotation.Nullable; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringUtils; import org.sonar.api.CoreProperties; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java index 4e88bc085cc..16b780739e7 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java @@ -66,7 +66,7 @@ public abstract class ProfileExporter { } protected final ProfileExporter setSupportedLanguages(String... languages) { - supportedLanguages = (languages != null) ? languages : new String[0]; + supportedLanguages = (languages != null ? languages : new String[0]); return this; } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileImporter.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileImporter.java index bc37cec75b3..afe3d17e748 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileImporter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileImporter.java @@ -64,7 +64,7 @@ public abstract class ProfileImporter { } protected final ProfileImporter setSupportedLanguages(String... languages) { - supportedLanguages = ((languages != null) ? languages : new String[0]); + supportedLanguages = (languages != null ? languages : new String[0]); return this; } -- cgit v1.2.3