diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-22 14:51:27 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-25 22:06:12 +0200 |
commit | 34fb4d487e417fea68d3c2cd1a87b75165b1aef2 (patch) | |
tree | 23f05fb946772a1fcb030d0df79f0a4ef1e4d8a3 /org.eclipse.jgit.http.server | |
parent | 7b79feb07891dde03e7fd0e7f89b630624be1272 (diff) | |
download | jgit-34fb4d487e417fea68d3c2cd1a87b75165b1aef2.tar.gz jgit-34fb4d487e417fea68d3c2cd1a87b75165b1aef2.zip |
[errorprone] MetaFilter: fix IdentityHashMapUsage
See https://errorprone.info/bugpattern/IdentityHashMapUsage
Change-Id: Ib49c2ca5506ea7468d2680faba254fa9cd430c2c
Diffstat (limited to 'org.eclipse.jgit.http.server')
-rw-r--r-- | org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/MetaFilter.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/MetaFilter.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/MetaFilter.java index e626bec134..7cd1ecf693 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/MetaFilter.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/MetaFilter.java @@ -17,7 +17,6 @@ import java.util.ArrayList; import java.util.IdentityHashMap; import java.util.Iterator; import java.util.List; -import java.util.Map; import java.util.Set; import java.util.regex.Pattern; @@ -113,7 +112,7 @@ public class MetaFilter implements Filter { } private static Set<Object> newIdentitySet() { - final Map<Object, Object> m = new IdentityHashMap<>(); + final IdentityHashMap<Object, Object> m = new IdentityHashMap<>(); return new AbstractSet<>() { @Override |