Allon Mureinik has posted comments on this change. Change subject: core: Move getFQN to SetVmTicketCommand ......................................................................
Patch Set 3: Code-Review+1 (2 comments) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SetVmTicketCommand.java Line 56: } Line 57: return permissions; Line 58: } Line 59: Line 60: String getConsoleUserName() { shouldn't this be private? Line 61: VdcUser user = getCurrentUser(); Line 62: String domain = user.getDomainControler(); Line 63: String name = user.getUserName(); Line 64: if (StringUtils.isEmpty(name) || name.contains("@") || StringUtils.isEmpty(domain)) { Line 58: } Line 59: Line 60: String getConsoleUserName() { Line 61: VdcUser user = getCurrentUser(); Line 62: String domain = user.getDomainControler(); These two variables are only used in the else branch. Perhaps it's worth the hassle moving them there. Line 63: String name = user.getUserName(); Line 64: if (StringUtils.isEmpty(name) || name.contains("@") || StringUtils.isEmpty(domain)) { Line 65: return name; Line 66: } else { -- To view, visit http://gerrit.ovirt.org/17223 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: If4a3a45136db9c42ab347f9722326f597afd26fd Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches