Yair Zaslavsky has posted comments on this change.
Change subject: frontend: node upgrade message improvement
......................................................................
Patch Set 3:
(1 comment)
....................................................
File
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostGeneralModel.java
Line 681: alert = true;
Line 682: break;
Line 683: }
Line 684:
Line 685: if (Integer.toString(iso.getRevision()).length() >
release_host[0].length()) {
After looking again at your code I understand what you have tried to achieve..
Several issues -
a. I would recommend to use Long.parseLong
b. I still think that getRevision will be problematic, it's a problem that
RpmVersion extends Version.
getRevision returns int, what do you expect from transforming it to a String,
and try to split it to parts delimited by colon?
Line 686: alert = true;
Line 687: break;
Line 688: }
Line 689:
--
To view, visit http://gerrit.ovirt.org/17987
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I76bd2948524110ec80923e855bd1f49e09e17046
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Douglas Schilling Landgraf <[email protected]>
Gerrit-Reviewer: Einav Cohen <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches