diff options
author | Kevin Sawicki <kevin@github.com> | 2012-05-09 08:45:08 -0700 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2012-05-10 00:32:27 +0200 |
commit | e3335cfa6bb22679f5ab0170e4086b7ef88fb2d5 (patch) | |
tree | 082ab982280f4d4d4e2250ba563f749754ac39ed | |
parent | 6ebc477c0b6a209ec9bd1a8bcce796d04ca66966 (diff) | |
download | jgit-e3335cfa6bb22679f5ab0170e4086b7ef88fb2d5.tar.gz jgit-e3335cfa6bb22679f5ab0170e4086b7ef88fb2d5.zip |
Remove 4 unboxed warnings
Use Integer.intValue to explicitly convert to an int
Change-Id: I1135ed01af4e274b26d6b07d1a50f48ef0a30d91
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java | 4 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportSftp.java | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java index 3ad56d1846..382d162439 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java @@ -225,8 +225,8 @@ public class PlotCommitList<L extends PlotLane> extends if (blockedPositions.get(commit.lane.getPosition())) { int newPos = -1; for (Integer pos : freePositions) - if (!blockedPositions.get(pos)) { - newPos = pos; + if (!blockedPositions.get(pos.intValue())) { + newPos = pos.intValue(); break; } if (newPos == -1) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportSftp.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportSftp.java index dec6a4f405..dbb6c7ce0b 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportSftp.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportSftp.java @@ -248,7 +248,8 @@ public class TransportSftp extends SshTransport implements WalkTransport { Collections.sort(packs, new Comparator<String>() { public int compare(final String o1, final String o2) { - return mtimes.get(o2) - mtimes.get(o1); + return mtimes.get(o2).intValue() + - mtimes.get(o1).intValue(); } }); } catch (SftpException je) { |