Shahar Havivi has posted comments on this change.

Change subject: findbugs: use StringBuilder in a for loop
......................................................................


Patch Set 1: (1 inline comment)

....................................................
File 
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/AbstractUiCommandButton.java
Line 62:             for (String reason : 
command.getExecuteProhibitionReasons()) {
Line 63:                 sb.append(reason).append(",");  //$NON-NLS-1$
Line 64:             }
Line 65:             title = sb.toString();
Line 66:             if (!title.equals("")) //$NON-NLS-1$
We are continue to work with title, this is why I assigned title from sb.
I can check the title.length() but I do need the toString()
Line 67:             {
Line 68:                 title = title.substring(0, title.length() -1);
Line 69:             }
Line 70:         } else {


--
To view, visit http://gerrit.ovirt.org/14367
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: If11e9b335a741aaa364893474573d226ca9ece72
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Asaf Shakarchi <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Shahar Havivi <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to