From: Kevin Sawicki Date: Thu, 3 Nov 2011 10:03:01 +0000 (+0100) Subject: Suppress unused and unchecked warnings X-Git-Tag: v1.2.0.201112221803-r~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F4532%2F1;p=jgit.git Suppress unused and unchecked warnings Change-Id: I9f51cc749f5cb9d2e3aa86874e60fca29b779565 Signed-off-by: Kevin Sawicki --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java index 75961fc3b3..627df927b4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java @@ -594,6 +594,7 @@ public class TreeWalk { * @return r the current iterator of the requested type; null if the tree * has no entry to match the current path. */ + @SuppressWarnings("unchecked") public T getTree(final int nth, final Class clazz) { final AbstractTreeIterator t = trees[nth]; @@ -914,6 +915,7 @@ public class TreeWalk { System.arraycopy(tmp, 0, trees, 0, trees.length); } + @SuppressWarnings("unused") AbstractTreeIterator min() throws CorruptObjectException { int i = 0; AbstractTreeIterator minRef = trees[i];