diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/AbbreviationTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/AbbreviationTest.java index 1a38a7deb..25e7aa3a1 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/AbbreviationTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/AbbreviationTest.java @@ -144,7 +144,6 @@ public class AbbreviationTest extends LocalDiskRepositoryTestCase { assertEquals(id, db.resolve(reader.abbreviate(id, 8).name())); } - @SuppressWarnings("unchecked") public void testAbbreviateIsActuallyUnique() throws Exception { // This test is far more difficult. We have to manually craft // an input that contains collisions at a particular prefix, diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCache.java index 523e08484..68fa19120 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCache.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCache.java @@ -518,7 +518,6 @@ public class WindowCache { gc(); } - @SuppressWarnings("unchecked") private void gc() { Ref r; while ((r = (Ref) queue.poll()) != null) {