changeset 7914:d1505b59555d

[SCENEBUILDER] FindBugs SBSC_USE_STRINGBUFFER_CONCATENATION
author yjoan
date Fri, 29 Aug 2014 14:29:03 +0200
parents f1184656721a
children fd2937307d22
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 16:09:44 2014 +0400
+++ b/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/library/BuiltinLibrary.java	Fri Aug 29 14:29:03 2014 +0200
@@ -275,16 +275,16 @@
     
     private void addRegionItem200x200(Class<? extends Region> componentClass, String section, String qualifier, String iconName) {
         final String name = componentClass.getSimpleName();
-        String nameWithQualifier = name;
+        StringBuilder nameWithQualifier = new StringBuilder(name);
         if (qualifier != null) {
-            nameWithQualifier += qualifier;
+            nameWithQualifier.append(qualifier);
         }
         final String fxmlText = makeRegionFxmlText(componentClass, 200.0, 200.0);
         String theIconName = name;
         if (iconName != null) {
             theIconName = iconName;
         }
-        addItem(nameWithQualifier, fxmlText, section, theIconName);
+        addItem(nameWithQualifier.toString(), fxmlText, section, theIconName);
     }