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.pgm/src/org/eclipse/jgit/pgm/AmazonS3Client.java | |
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.pgm/src/org/eclipse/jgit/pgm/AmazonS3Client.java')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AmazonS3Client.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AmazonS3Client.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AmazonS3Client.java index f137b10aca..8485ab5f38 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AmazonS3Client.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AmazonS3Client.java @@ -44,6 +44,8 @@ package org.eclipse.jgit.pgm; +import static java.lang.Integer.valueOf; + import java.io.EOFException; import java.io.File; import java.io.FileInputStream; @@ -91,7 +93,9 @@ class AmazonS3Client extends TextBuiltin { while (len > 0) { final int n = in.read(tmp); if (n < 0) - throw new EOFException(MessageFormat.format(CLIText.get().expectedNumberOfbytes, len)); + throw new EOFException(MessageFormat.format( + CLIText.get().expectedNumberOfbytes, + valueOf(len))); outs.write(tmp, 0, n); len -= n; } |