From 2ee2888ee89634f5c24162664fd63df97b1aaf2d Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Tue, 11 Mar 2014 09:12:59 +0100 Subject: [PATCH] attempt to clarify the inspection description --- .../StringBufferReplaceableByString.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/StringBufferReplaceableByString.html b/plugins/InspectionGadgets/src/inspectionDescriptions/StringBufferReplaceableByString.html index 9ab43dec8040..01aab76f96c0 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/StringBufferReplaceableByString.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/StringBufferReplaceableByString.html @@ -1,8 +1,10 @@ Reports any variables declared as or uses of java.lang.StringBuffer and java.lang.StringBuilder -which are effectively constant. These may be replaced with java.lang.String expressions which results in simpler and possibly -more efficient code. +which can be replaced with a single java.lang.String concatenation. Using a String concatenation +makes the code shorter and simpler. +This inspection only reports when the resulting concatenation is at least as efficient or more efficient than the original +StringBuffer or StringBuilder use.