aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-11-03 06:03:01 (EDT)
committerKevin Sawicki2011-11-03 06:03:01 (EDT)
commit5041f738e92cc832ae202cccd8a989998a563bd0 (patch)
treee9b1e584bad5166a8cd8b6aaee87f180d155e2eb
parent9f81c6813a7165a5824cfe368fa600c0b8a5595c (diff)
downloadjgit-5041f738e92cc832ae202cccd8a989998a563bd0.zip
jgit-5041f738e92cc832ae202cccd8a989998a563bd0.tar.gz
jgit-5041f738e92cc832ae202cccd8a989998a563bd0.tar.bz2
Suppress unused and unchecked warningsrefs/changes/32/4532/1
Change-Id: I9f51cc749f5cb9d2e3aa86874e60fca29b779565 Signed-off-by: Kevin Sawicki <kevin@github.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java2
1 files changed, 2 insertions, 0 deletions
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 75961fc..627df92 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 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];