summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-22 15:00:47 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-25 22:06:12 +0200
commit049782743e78c81b0d8a1a8b566d56edbc83c6e6 (patch)
tree63dac4c1a27aea868766a6999e5c8b865748d337 /org.eclipse.jgit.lfs/src
parent8c42901b547189dd3daa70572b9dd2f1e8e098b3 (diff)
downloadjgit-049782743e78c81b0d8a1a8b566d56edbc83c6e6.tar.gz
jgit-049782743e78c81b0d8a1a8b566d56edbc83c6e6.zip
[errorprone] Fix EqualsGetClass
See https://errorprone.info/bugpattern/EqualsGetClass Change-Id: Ida19a7e60656f87518e5ae2ef5eae511edb5b837
Diffstat (limited to 'org.eclipse.jgit.lfs/src')
-rw-r--r--org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPointer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPointer.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPointer.java
index afe963640d..72aad9b0c9 100644
--- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPointer.java
+++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/LfsPointer.java
@@ -294,7 +294,7 @@ public class LfsPointer implements Comparable<LfsPointer> {
if (this == obj) {
return true;
}
- if (obj == null || getClass() != obj.getClass()) {
+ if (!(obj instanceof LfsPointer)) {
return false;
}
LfsPointer other = (LfsPointer) obj;