Browse Source

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>
stable-2.0
Kevin Sawicki 13 years ago committed by Matthias Sohn
parent
commit
e3335cfa6b
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java
  2. 3
      org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportSftp.java

4
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())) { if (blockedPositions.get(commit.lane.getPosition())) {
int newPos = -1; int newPos = -1;
for (Integer pos : freePositions) for (Integer pos : freePositions)
if (!blockedPositions.get(pos)) { if (!blockedPositions.get(pos.intValue())) {
newPos = pos; newPos = pos.intValue();
break; break;
} }
if (newPos == -1) if (newPos == -1)

3
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>() { Collections.sort(packs, new Comparator<String>() {
public int compare(final String o1, final String o2) { 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) { } catch (SftpException je) {

Loading…
Cancel
Save