From 0ea56ba7bb5824ddbbe097aba3ee7cd937b0e1a0 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Thu, 11 Jun 2026 19:02:46 +0200 Subject: [PATCH] IJPL-245459 [java]: add to intention before template, fix grammar GitOrigin-RevId: 7b8e890b36ac9622ec633986bebb22a9638fd10b --- .../ConvertToSingleReturnAction/before.java.template | 2 +- .../ConvertToSingleReturnAction/description.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.