findbugs
[utils] / system / general / src / main / java / org / wamblee / system / adapters / SetterConfiguration.java
index c8baeafb9dcdef0e4b117d49d783c43564712613..fffd828c0f1257135378da5e5dcb81297653e9a0 100644 (file)
@@ -12,7 +12,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.wamblee.system.adapters;
 
 import org.wamblee.collections.CollectionFilter;
@@ -167,7 +167,6 @@ public class SetterConfiguration {
      * 
      */
     public SetterConfiguration add(final String aName) {
-        int oldlen = setters.size();
         List<Method> methods = new ArrayList<Method>();
         CollectionFilter.filter(getAllSetters(clazz, publicOnly), methods,
             new Condition<Method>() {
@@ -222,10 +221,10 @@ public class SetterConfiguration {
         }
 
         if (result.size() > 1) {
-            String setters = "";
+            StringBuffer setters = new StringBuffer();
 
             for (Method method : result) {
-                setters += (method.getName() + " ");
+                setters.append((method.getName() + " "));
             }
 
             throw new IllegalArgumentException(