1 | package pro.verron.officestamper.core; | |
2 | ||
3 | import pro.verron.officestamper.api.*; | |
4 | ||
5 | import java.util.AbstractMap; | |
6 | import java.util.Map; | |
7 | import java.util.Set; | |
8 | ||
9 | public class CommentProcessors | |
10 | extends AbstractMap<Class<?>, CommentProcessor> { | |
11 | ||
12 | private final Map<Class<?>, CommentProcessor> processors; | |
13 | ||
14 | public CommentProcessors(Map<Class<?>, CommentProcessor> processors) { | |
15 | this.processors = processors; | |
16 | } | |
17 | ||
18 | public void setContext(ProcessorContext context) { | |
19 | for (var processor : processors.values()) { | |
20 |
1
1. setContext : removed call to pro/verron/officestamper/api/CommentProcessor::setProcessorContext → KILLED |
processor.setProcessorContext(context); |
21 | } | |
22 | } | |
23 | ||
24 | void commitChanges(DocxPart source) { | |
25 | for (var processor : processors.values()) { | |
26 |
1
1. commitChanges : removed call to pro/verron/officestamper/api/CommentProcessor::commitChanges → KILLED |
processor.commitChanges(source); |
27 |
1
1. commitChanges : removed call to pro/verron/officestamper/api/CommentProcessor::reset → KILLED |
processor.reset(); |
28 | } | |
29 | } | |
30 | ||
31 | @Override public Set<Entry<Class<?>, CommentProcessor>> entrySet() { | |
32 |
1
1. entrySet : replaced return value with Collections.emptySet for pro/verron/officestamper/core/CommentProcessors::entrySet → KILLED |
return processors.entrySet(); |
33 | } | |
34 | } | |
Mutations | ||
20 |
1.1 |
|
26 |
1.1 |
|
27 |
1.1 |
|
32 |
1.1 |