]> source.dussan.org Git - jgit.git/commitdiff
Suppress unused and unchecked warnings 32/4532/1
authorKevin Sawicki <kevin@github.com>
Thu, 3 Nov 2011 10:03:01 +0000 (11:03 +0100)
committerKevin Sawicki <kevin@github.com>
Thu, 3 Nov 2011 10:03:01 +0000 (11:03 +0100)
Change-Id: I9f51cc749f5cb9d2e3aa86874e60fca29b779565
Signed-off-by: Kevin Sawicki <kevin@github.com>
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java

index 75961fc3b321c2e35ab148d47823e276ce23021f..627df927b4a146fa8ed397dfea1f81e90b43b85c 100644 (file)
@@ -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 extends AbstractTreeIterator> T getTree(final int nth,
                        final Class<T> 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];