Browse Source

cleanup: Remove unnecessary @SuppressWarnings

Change-Id: I1b239b587e1cc811bbd6e1513b07dc93a891a842
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
stable-0.9
Robin Rosenberg 15 years ago
parent
commit
8145e40233
  1. 1
      org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/AbbreviationTest.java
  2. 1
      org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCache.java

1
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())); assertEquals(id, db.resolve(reader.abbreviate(id, 8).name()));
} }
@SuppressWarnings("unchecked")
public void testAbbreviateIsActuallyUnique() throws Exception { public void testAbbreviateIsActuallyUnique() throws Exception {
// This test is far more difficult. We have to manually craft // This test is far more difficult. We have to manually craft
// an input that contains collisions at a particular prefix, // an input that contains collisions at a particular prefix,

1
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/WindowCache.java

@ -518,7 +518,6 @@ public class WindowCache {
gc(); gc();
} }
@SuppressWarnings("unchecked")
private void gc() { private void gc() {
Ref r; Ref r;
while ((r = (Ref) queue.poll()) != null) { while ((r = (Ref) queue.poll()) != null) {

Loading…
Cancel
Save