diff --git a/java/java-impl/resources/intentionDescriptions/ConvertToSingleReturnAction/before.java.template b/java/java-impl/resources/intentionDescriptions/ConvertToSingleReturnAction/before.java.template index 52c9b1f4cc96..7adaf1fd56e9 100644 --- a/java/java-impl/resources/intentionDescriptions/ConvertToSingleReturnAction/before.java.template +++ b/java/java-impl/resources/intentionDescriptions/ConvertToSingleReturnAction/before.java.template @@ -1,4 +1,4 @@ -void test(String s) { +void test(String s) { if(s == null) return; if(s.isEmpty()) return; System.out.println(s); diff --git a/java/java-impl/resources/intentionDescriptions/ConvertToSingleReturnAction/description.html b/java/java-impl/resources/intentionDescriptions/ConvertToSingleReturnAction/description.html index 42f3ae7e455f..6f7c44169e70 100644 --- a/java/java-impl/resources/intentionDescriptions/ConvertToSingleReturnAction/description.html +++ b/java/java-impl/resources/intentionDescriptions/ConvertToSingleReturnAction/description.html @@ -1,6 +1,6 @@ -Converts a method body to a single return form. After applying this action, +Converts a method body to single return form. After applying this action, all the intermediate return statements will be removed and the control flow will be changed to exit through the last method body statement. Note that while conversion is always possible, the resulting code does not always look pretty.