summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorFabio Ponciroli <ponch78@gmail.com>2022-03-10 20:07:57 +0100
committerThomas Wolf <thomas.wolf@paranor.ch>2022-04-02 04:18:54 -0400
commit98029e675829e94a33a5bca8dbf45ed46eb2d880 (patch)
treeb03743bde1bed9ec302ef703f044d6502f6b6da7 /org.eclipse.jgit
parent47a16f5f22f50c851f32e25d3e3ac4e3e47b98b8 (diff)
downloadjgit-98029e675829e94a33a5bca8dbf45ed46eb2d880.tar.gz
jgit-98029e675829e94a33a5bca8dbf45ed46eb2d880.zip
BaseSearch: Suppress ReferenceEquality Warnings
Errorprone raises the following warning: "[ReferenceEquality] Comparison using reference equality instead of value equality" Change-Id: Ib7542506dcdf5a0c7775a99a2c0972930d622879
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/BaseSearch.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/BaseSearch.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/BaseSearch.java
index 1c24aff12d..cda456c3cb 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/BaseSearch.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/BaseSearch.java
@@ -142,6 +142,7 @@ class BaseSearch {
return ptr;
}
+ @SuppressWarnings("ReferenceEquality")
private void add(AnyObjectId id, int objectType, int pathHash) {
ObjectToPack obj = new ObjectToPack(id, objectType);
obj.setEdge();