Yevgeny Zaspitsky has posted comments on this change. Change subject: engine: Support replacements in ValidationResult ......................................................................
Patch Set 1: (2 comments) I already did very similar change in one of my patches http://gerrit.ovirt.org/#/c/34855/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ValidationResult.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ValidationResult.java: Line 160: * @param expectedError Line 161: * The error we expect should the validation fail. Line 162: * @return A helper object that returns the correct validation result depending on the condition. Line 163: */ Line 164: public static ValidationResultBuilder failWith(VdcBllMessages expectedError) { This is redundant after adding the overloaded method Line 165: return new ValidationResultBuilder(expectedError); Line 166: } Line 167: Line 168: /** Line 211: private ValidationResultBuilder(VdcBllMessages expectedError, String[] replacements) { Line 212: expectedValidation = new ValidationResult(expectedError, replacements); Line 213: } Line 214: Line 215: private ValidationResultBuilder(VdcBllMessages expectedError) { This is redundant after adding the overloaded constructor and removing the failsWiths method with no replacements argument Line 216: expectedValidation = new ValidationResult(expectedError); Line 217: } Line 218: Line 219: /** -- To view, visit http://gerrit.ovirt.org/34855 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I5f2bd85af2d129e0647b100b90908a1314419da2 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Moti Asayag <[email protected]> Gerrit-Reviewer: Alona Kaplan <[email protected]> Gerrit-Reviewer: Mike Kolesnik <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: Yevgeny Zaspitsky <[email protected]> Gerrit-Reviewer: [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
