ApplyPatchStatus () { final List<FilePatch> failedPreCheck = myVerifier.nonWriteActionPreCheck(); final List<FilePatch> skipped = myVerifier.getSkipped(); myRemainingPatches.addAll(myPatches); myFailedPatches.addAll(failedPreCheck); myPatches.removeAll(failedPreCheck); myPatches.removeAll(skipped); if (!failedPreCheck.isEmpty()) { return ApplyPatchStatus.FAILURE; } else if (skipped.isEmpty()) { return ApplyPatchStatus.SUCCESS; } else if (skipped.size() == myPatches.size()) { return ApplyPatchStatus.ALREADY_APPLIED; } else { return ApplyPatchStatus.PARTIAL; } }