changeset 7915:fd2937307d22

[SCENEBUILDER] FindBugs SBSC_USE_STRINGBUFFER_CONCATENATION
author yjoan
date Fri, 29 Aug 2014 15:41:00 +0200
parents d1505b59555d
children 4c3674e9ab57
files apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/library/BuiltinLibrary.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/library/BuiltinLibrary.java	Fri Aug 29 14:29:03 2014 +0200
+++ b/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/library/BuiltinLibrary.java	Fri Aug 29 15:41:00 2014 +0200
@@ -256,12 +256,12 @@
     
     private void addDefaultItem(Class<?> componentClass, String section, String... qualifiers) {
         final String name = componentClass.getSimpleName();
-        String nameWithQualifier = name;
+        StringBuilder nameWithQualifier = new StringBuilder(name);
         for (String qualifier : qualifiers) {
-            nameWithQualifier += qualifier;
+            nameWithQualifier.append(qualifier);
         }
         final String fxmlText = makeFxmlText(componentClass);
-        addItem(nameWithQualifier, fxmlText, section, name);
+        addItem(nameWithQualifier.toString(), fxmlText, section, name);
     }