diff options
author | Zeeshan Asghar <zeeshan.asghar@devfactory.com> | 2016-01-20 15:51:03 +0500 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-01-29 17:09:25 +0100 |
commit | 7c45001a63725d8898496c84c5e51fae0263a720 (patch) | |
tree | fdae8140cc7fa69fa66c6ddde6fd0a73af2410d6 /sonar-plugin-api | |
parent | bf071cefa1d04303ae246de745a8856c64b9617f (diff) | |
download | sonarqube-7c45001a63725d8898496c84c5e51fae0263a720.tar.gz sonarqube-7c45001a63725d8898496c84c5e51fae0263a720.zip |
squid:UselessPrenthesesCheck Useless parentheses around expression should be removed to prevent any misunderstanging
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java index a82771df076..d1544367704 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java @@ -637,7 +637,7 @@ public interface WebService extends Definable<WebService.Context> { * @since 4.4 */ public NewParam setExampleValue(@Nullable Object s) { - this.exampleValue = ((s != null) ? s.toString() : null); + this.exampleValue = (s != null) ? s.toString() : null; return this; } @@ -680,7 +680,7 @@ public interface WebService extends Definable<WebService.Context> { * @since 4.4 */ public NewParam setDefaultValue(@Nullable Object o) { - this.defaultValue = ((o != null) ? o.toString() : null); + this.defaultValue = (o != null) ? o.toString() : null; return this; } |