in tomee-patch-core/src/main/java/org/apache/tomee/patch/core/Transformation.java [471:500]
public void complete() {
final List<Clazz> appliedPatches = classes.stream()
.filter(Clazz::isApplied)
.collect(Collectors.toList());
final List<Clazz> unappliedPatches = classes.stream()
.filter(not(Clazz::isApplied))
.collect(Collectors.toList());
final int applied = appliedPatches.stream()
.map(Clazz::getApplied)
.reduce(Integer::sum)
.orElse(0);
log.info(String.format("Applied %s patches to %s locations", appliedPatches.size(), applied));
appliedPatches.stream()
.map(Clazz::getName)
.map(s -> " " + s)
.forEach(log::debug);
if (unappliedPatches.size() > 0) {
final String message = String.format("Failed to apply %s patches", unappliedPatches.size());
log.error(message);
unappliedPatches.stream()
.map(Clazz::getName)
.map(s -> " " + s)
.forEach(log::error);
throw new UnappliedPatchesException(unappliedPatches);
}
}