From 2adffb0aeae4ebdb3710fe02e259e60d767c09ae Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Wed, 26 Feb 2025 11:19:49 +0100 Subject: [PATCH] Correct formatting of Win32 Display class This fixes wrong formatting introduced to the Win32 display class in https://github.com/eclipse-platform/eclipse.platform.swt/pull/1722 --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java index 16d33c4c4b8..7d8f568acae 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java @@ -5163,7 +5163,7 @@ String wrapText (String text, long handle, int width) { static String withCrLf (String string) { /* Create a new string with the CR/LF line terminator. */ - int i = 0; + int i = 0; int length = string.length(); StringBuilder result = new StringBuilder (length); while (i < length) { @@ -5180,7 +5180,7 @@ static String withCrLf (String string) { } } } - + /* Avoid creating a copy of the string if it has not changed */ if (string.length()== result.length()) return string; return result.toString ();