aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-generator
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-11-18 16:45:02 -0600
committersonartech <sonartech@sonarsource.com>2021-11-20 20:03:51 +0000
commit3f9445c25962f914ccdd889c002ddd8e19b0cf89 (patch)
treeeb4f34a62b7164a71fd0bbe34d6f59621a687d8d /sonar-ws-generator
parentaa640be9e2b9cfa2c027ef0768940b31ebb5536c (diff)
downloadsonarqube-3f9445c25962f914ccdd889c002ddd8e19b0cf89.tar.gz
sonarqube-3f9445c25962f914ccdd889c002ddd8e19b0cf89.zip
Improve code quality
Diffstat (limited to 'sonar-ws-generator')
-rw-r--r--sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/Helper.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/Helper.java b/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/Helper.java
index eafe7a34625..1521f8ff070 100644
--- a/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/Helper.java
+++ b/sonar-ws-generator/src/main/java/org/sonarqube/wsgenerator/Helper.java
@@ -121,9 +121,7 @@ public class Helper {
} catch (ClassNotFoundException e) {
}
return Stream.empty();
- })).findFirst().orElseGet(() -> {
- return "String";
- });
+ })).findFirst().orElseGet(() -> "String");
}
private Stream<String> guessResponseInnerClassName(String action) {