Laszlo Hornyak has posted comments on this change.
Change subject: engine: Version cleanup
......................................................................
Patch Set 1: (2 inline comments)
....................................................
File
backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/Version.java
Line 61: appendVersionComponent(val, this.revision);
Line 62: return val.toString();
Line 63: }
Line 64:
Line 65: static void appendVersionComponent(StringBuilder val, int
versionNumber) {
ok, let's make it private
Line 66: if (versionNumber > -1) {
Line 67: if (val.length() != 0) {
Line 68: val.append(".");
Line 69: }
Line 63: }
Line 64:
Line 65: static void appendVersionComponent(StringBuilder val, int
versionNumber) {
Line 66: if (versionNumber > -1) {
Line 67: if (val.length() != 0) {
See line 47. Things that can happen, do happen
But anyway, the point is to remove the val != "" because it only accidentaly
works and replacing the String += concatenation at the same time
Line 68: val.append(".");
Line 69: }
Line 70: val.append(versionNumber);
Line 71: }
--
To view, visit http://gerrit.ovirt.org/12368
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I7dba498fa54bae997d08e7457dd53eb60a740199
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Laszlo Hornyak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches