Skip to content

Commit d3971fe

Browse files
EcljpseB0Tjukzi
authored andcommitted
String intern org.eclipse.e4.ui.css.swt.dom.WidgetElement.swtStyles
To avoid needless duplicate strings
1 parent cd48fcd commit d3971fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/helpers/SWTStyleHelpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ public static String getSWTWidgetStyleAsString(int style, String separator) {
756756
}
757757
} catch (Exception e) {
758758
}
759-
return swtStyles.length() == 0 ? "" : swtStyles.toString();
759+
return swtStyles.length() == 0 ? "" : swtStyles.toString().intern();
760760
}
761761

762762
/**

0 commit comments

Comments
 (0)