diff options
author | David Ostrovsky <david@ostrovsky.org> | 2017-03-18 16:20:40 +0100 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2017-03-18 16:47:35 +0100 |
commit | 4886621261c3b5fa2d9c75fd72d19ac186c9f970 (patch) | |
tree | 7300d85ce9add6f50d3bdfff9d33e78a1672477a /org.eclipse.jgit.lfs.test | |
parent | 9b4f1913fb97e5d6bced122b832a9f40e2316bb0 (diff) | |
download | jgit-4886621261c3b5fa2d9c75fd72d19ac186c9f970.tar.gz jgit-4886621261c3b5fa2d9c75fd72d19ac186c9f970.zip |
LongObjectIdTest: Remove self comparison test
This fixes test flagged by error prone:
LongObjectIdTest.java:294: error: [SelfComparison] An object is
compared to itself
assertEquals(0, id1.compareTo(id1));
Change-Id: Ife339c92b9570db2471a2fc029b3bfa114044790
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Diffstat (limited to 'org.eclipse.jgit.lfs.test')
-rw-r--r-- | org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/lib/LongObjectIdTest.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/lib/LongObjectIdTest.java b/org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/lib/LongObjectIdTest.java index 68dcf806b8..e754d6f744 100644 --- a/org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/lib/LongObjectIdTest.java +++ b/org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/lib/LongObjectIdTest.java @@ -291,7 +291,6 @@ public class LongObjectIdTest { "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"); assertEquals(0, id1.compareTo(LongObjectId.fromString( "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"))); - assertEquals(0, id1.compareTo(id1)); assertEquals(-1, id1.compareTo(LongObjectId.fromString( "1123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"))); |