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 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]; -- 2.39.5