Skip to content

Commit

Permalink
pcorlessGH-216 Removes name from filter parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gtache committed Nov 7, 2022
1 parent 6e1eace commit c1eeb29
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
public abstract class AbstractDocumentFilter implements DocumentFilter {

protected static final String NAME = "filterName";
private final Set<DocumentFilterListener> listeners;
private final Map<Document, Set<Integer>> cache;
private final Map<String, Object> parameters;
Expand All @@ -20,9 +19,7 @@ public abstract class AbstractDocumentFilter implements DocumentFilter {
protected AbstractDocumentFilter(final Map<String, Object> parameters) {
this.cache = new WeakHashMap<>();
this.listeners = new HashSet<>();
final Map<String, Object> tmpParameters = new HashMap<>(parameters);
tmpParameters.putIfAbsent(NAME, toString());
this.parameters = Collections.unmodifiableMap(tmpParameters);
this.parameters = Collections.unmodifiableMap(new HashMap<>(parameters));
}

@Override
Expand Down

0 comments on commit c1eeb29

Please sign in to comment.