From 5041f738e92cc832ae202cccd8a989998a563bd0 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 3 Nov 2011 11:03:01 +0100 Subject: [PATCH] Suppress unused and unchecked warnings Change-Id: I9f51cc749f5cb9d2e3aa86874e60fca29b779565 Signed-off-by: Kevin Sawicki --- org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java | 2 ++ 1 file changed, 2 insertions(+) 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 75961fc3b..627df927b 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 boolean next() throws MissingObjectException, * @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 void enterSubtree() throws MissingObjectException, System.arraycopy(tmp, 0, trees, 0, trees.length); } + @SuppressWarnings("unused") AbstractTreeIterator min() throws CorruptObjectException { int i = 0; AbstractTreeIterator minRef = trees[i];