From 3f9445c25962f914ccdd889c002ddd8e19b0cf89 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 18 Nov 2021 16:45:02 -0600 Subject: Improve code quality --- .../src/main/java/org/sonarqube/wsgenerator/Helper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sonar-ws-generator/src') 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 guessResponseInnerClassName(String action) { -- cgit v1.2.3