@Override public <P extends PatchingArtifact.ArtifactState, S extends PatchingArtifact.ArtifactState> void addInconsistent(PatchingArtifact<P, S> artifact, S current) { if (!handleError(artifact, current)) { errors.add(PatchLogger.ROOT_LOGGER.inconsistentArtifact(current)); } }
processor.process(builder.iterator());
processor.process(builder.iterator());
processor.process(builder.iterator()); return validHistory;
processor.process(builder.iterator()); return validHistory;
protected void process(PatchHistoryIterator iterator) throws PatchingException { while (iterator.hasNext() && canProceed()) { final String patch = iterator.next(this); if (includeCurrent()) { processedPatch(patch); } } // If there are errors, fail if (!errors.isEmpty()) { throw new PatchingException(errors.toString()); } }
@Override public <P extends PatchingArtifact.ArtifactState, S extends PatchingArtifact.ArtifactState> void addError(PatchingArtifact<P, S> artifact, S state) { if (!handleError(artifact, state)) { errors.add(PatchLogger.ROOT_LOGGER.artifactInError(state)); } }
protected void process(PatchHistoryIterator iterator) throws PatchingException { while (iterator.hasNext() && canProceed()) { final String patch = iterator.next(this); if (includeCurrent()) { processedPatch(patch); } } // If there are errors, fail if (!errors.isEmpty()) { throw new PatchingException(errors.toString()); } }
@Override public <P extends PatchingArtifact.ArtifactState, S extends PatchingArtifact.ArtifactState> void addMissing(PatchingArtifact<P, S> artifact, S state) { if (!handleError(artifact, state)) { errors.add(PatchLogger.ROOT_LOGGER.missingArtifact(state)); } }
@Override public <P extends PatchingArtifact.ArtifactState, S extends PatchingArtifact.ArtifactState> void addMissing(PatchingArtifact<P, S> artifact, S state) { if (!handleError(artifact, state)) { errors.add(PatchLogger.ROOT_LOGGER.missingArtifact(state)); } }
@Override public <P extends PatchingArtifact.ArtifactState, S extends PatchingArtifact.ArtifactState> void addInconsistent(PatchingArtifact<P, S> artifact, S current) { if (!handleError(artifact, current)) { errors.add(PatchLogger.ROOT_LOGGER.inconsistentArtifact(current)); } }
@Override public <P extends PatchingArtifact.ArtifactState, S extends PatchingArtifact.ArtifactState> void addError(PatchingArtifact<P, S> artifact, S state) { if (!handleError(artifact, state)) { errors.add(PatchLogger.ROOT_LOGGER.artifactInError(state)); } }