]> source.dussan.org Git - jgit.git/commitdiff
cleanup: Remove unnecessary @SuppressWarnings 34/1534/2
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 4 Sep 2010 21:58:50 +0000 (23:58 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 4 Sep 2010 22:00:57 +0000 (00:00 +0200)
Change-Id: I1b239b587e1cc811bbd6e1513b07dc93a891a842
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/AbbreviationTest.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCache.java

index 1a38a7deb9e3bf672d143d5dbea46149d203a709..25e7aa3a1a415ee8fee0dd7222100f6dc8ae840a 100644 (file)
@@ -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,
index 523e084845c75a29e002bc0669f9d7871284649e..68fa19120398d615d517e46bd2a6e5388e80a98d 100644 (file)
@@ -518,7 +518,6 @@ public class WindowCache {
                gc();
        }
 
-       @SuppressWarnings("unchecked")
        private void gc() {
                Ref r;
                while ((r = (Ref) queue.poll()) != null) {