aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
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.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
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.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
index 4633187d77..ed0236b811 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
@@ -47,6 +47,8 @@
package org.eclipse.jgit.pgm;
+import static java.lang.Character.valueOf;
+
import java.io.IOException;
import java.io.PrintWriter;
import java.text.MessageFormat;
@@ -82,7 +84,8 @@ abstract class AbstractFetchCommand extends TextBuiltin {
shownURI = true;
}
- outw.format(" %c %-17s %-10s -> %s", type, longType, src, dst);
+ outw.format(" %c %-17s %-10s -> %s", valueOf(type), longType,
+ src, dst);
outw.println();
}
} finally {