aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-02 14:12:34 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-02 14:12:34 +0200
commita1d9480ac376955a23c3b23e6237a587139d86bb (patch)
tree180bb3409ca09fa78344e1a0f82dd1f38ec739cd /sonar-plugin-api/src
parent259fa0a5f2076aad072ea5f83980948553089fa8 (diff)
downloadsonarqube-a1d9480ac376955a23c3b23e6237a587139d86bb.tar.gz
sonarqube-a1d9480ac376955a23c3b23e6237a587139d86bb.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java1
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileImporter.java2
3 files changed, 2 insertions, 3 deletions
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;
}