Browse Source

Suppress unused and unchecked warnings

Change-Id: I9f51cc749f5cb9d2e3aa86874e60fca29b779565
Signed-off-by: Kevin Sawicki <kevin@github.com>
stable-1.2
Kevin Sawicki 13 years ago
parent
commit
5041f738e9
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java

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

Loading…
Cancel
Save