From 8145e402332a236dae6e5b4e669fa4851581ed64 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Sat, 4 Sep 2010 23:58:50 +0200 Subject: [PATCH] cleanup: Remove unnecessary @SuppressWarnings Change-Id: I1b239b587e1cc811bbd6e1513b07dc93a891a842 Signed-off-by: Robin Rosenberg --- .../tst/org/eclipse/jgit/storage/file/AbbreviationTest.java | 1 - .../src/org/eclipse/jgit/storage/file/WindowCache.java | 1 - 2 files changed, 2 deletions(-) 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) {