summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.iplog
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-09-22 01:15:39 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2012-09-22 01:21:00 +0200
commitc3f1fac03fdf3ed5165adfd22aa14a21e5876892 (patch)
tree6403e5f3175dbcdccfe0719a838527efd7d580fb /org.eclipse.jgit.iplog
parent46d42404d3913e626f86a4520032a689d207b4c8 (diff)
downloadjgit-c3f1fac03fdf3ed5165adfd22aa14a21e5876892.tar.gz
jgit-c3f1fac03fdf3ed5165adfd22aa14a21e5876892.zip
Suppress boxing warnings where we know they are ok
Invoke the wrapper types' valueOf via static imports. For booleans used in asserts, add a new assert in the JUnit utility package since out current version of JUnit does not have the assert(boolean, boolean) method. Change-Id: I9099bd8efbc8c133479344d51ce7dabed8958a2b
Diffstat (limited to 'org.eclipse.jgit.iplog')
-rw-r--r--org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/CQ.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/CQ.java b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/CQ.java
index 13781f48ad..73f062a4a3 100644
--- a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/CQ.java
+++ b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/CQ.java
@@ -43,6 +43,8 @@
package org.eclipse.jgit.iplog;
+import static java.lang.Long.valueOf;
+
import java.text.MessageFormat;
import java.util.Comparator;
@@ -157,6 +159,6 @@ class CQ {
@Override
public String toString() {
- return MessageFormat.format(IpLogText.get().CQString, getID());
+ return MessageFormat.format(IpLogText.get().CQString, valueOf(getID()));
}
}