aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/diff
diff options
context:
space:
mode:
authorKevin Sawicki <kevin@github.com>2012-05-08 21:42:53 -0700
committerKevin Sawicki <kevin@github.com>2012-05-08 21:42:53 -0700
commit17fb542e9eaca9dffc4c84a6d23608dadb4b1ea1 (patch)
tree31bb1e77a76750139daa9942db230a3e7952604c /org.eclipse.jgit/src/org/eclipse/jgit/diff
parente4effd25c542675b4c45c3ebeb5be81c23b316ff (diff)
downloadjgit-17fb542e9eaca9dffc4c84a6d23608dadb4b1ea1.tar.gz
jgit-17fb542e9eaca9dffc4c84a6d23608dadb4b1ea1.zip
Remove 86 boxing warnings
Use Integer, Character, and Long valueOf methods when passing parameters to MessageFormat and other places that expect objects instead of primitives Change-Id: I5942fbdbca6a378136c00d951ce61167f2366ca4
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/diff')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/diff/MyersDiff.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/MyersDiff.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/MyersDiff.java
index 6f04593b81..94acd43257 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/MyersDiff.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/MyersDiff.java
@@ -301,21 +301,21 @@ public class MyersDiff<S extends Sequence> {
final int getIndex(int d, int k) {
// TODO: remove
if (((d + k - middleK) % 2) != 0)
- throw new RuntimeException(MessageFormat.format(JGitText.get().unexpectedOddResult, d, k, middleK));
+ throw new RuntimeException(MessageFormat.format(JGitText.get().unexpectedOddResult, Integer.valueOf(d), Integer.valueOf(k), Integer.valueOf(middleK)));
return (d + k - middleK) / 2;
}
final int getX(int d, int k) {
// TODO: remove
if (k < beginK || k > endK)
- throw new RuntimeException(MessageFormat.format(JGitText.get().kNotInRange, k, beginK, endK));
+ throw new RuntimeException(MessageFormat.format(JGitText.get().kNotInRange, Integer.valueOf(k), Integer.valueOf(beginK), Integer.valueOf(endK)));
return x.get(getIndex(d, k));
}
final long getSnake(int d, int k) {
// TODO: remove
if (k < beginK || k > endK)
- throw new RuntimeException(MessageFormat.format(JGitText.get().kNotInRange, k, beginK, endK));
+ throw new RuntimeException(MessageFormat.format(JGitText.get().kNotInRange, Integer.valueOf(k), Integer.valueOf(beginK), Integer.valueOf(endK)));
return snake.get(getIndex(d, k));
}