diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2012-09-22 01:15:39 +0200 |
---|---|---|
committer | Robin Rosenberg <robin.rosenberg@dewire.com> | 2012-09-22 01:21:00 +0200 |
commit | c3f1fac03fdf3ed5165adfd22aa14a21e5876892 (patch) | |
tree | 6403e5f3175dbcdccfe0719a838527efd7d580fb /org.eclipse.jgit.iplog | |
parent | 46d42404d3913e626f86a4520032a689d207b4c8 (diff) | |
download | jgit-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.java | 4 |
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())); } } |