aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/profiles
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-12-04 14:25:21 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-12-04 14:26:32 +0100
commit9df8ed37f34ceb5d26045bf2d75a56b2fe80e172 (patch)
tree15b9d5a4d484ccc809f745a243fd7becf0a05166 /sonar-plugin-api/src/main/java/org/sonar/api/profiles
parent58d45c1b7a60280949d5a3da512cde645e19e1bc (diff)
downloadsonarqube-9df8ed37f34ceb5d26045bf2d75a56b2fe80e172.tar.gz
sonarqube-9df8ed37f34ceb5d26045bf2d75a56b2fe80e172.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/profiles')
-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
2 files changed, 2 insertions, 2 deletions
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 16b780739e7..4e88bc085cc 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 afe3d17e748..d0eeb1ac824 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;
}