Hide two warnings about boxing

Change-Id: I1cb7cdb81481019f4a55221d38d771fcc9451529
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Robin Rosenberg 2012-04-16 23:34:47 +02:00 committed by Matthias Sohn
parent 0e8f3a6234
commit bf33a6eeed
1 changed files with 2 additions and 0 deletions

View File

@ -258,6 +258,7 @@ public DirCacheEntry(final byte[] newPath) {
* or DirCache file. Or if {@code stage} is outside of the
* range 0..3, inclusive.
*/
@SuppressWarnings("boxing")
public DirCacheEntry(final byte[] newPath, final int stage) {
if (!isValidPath(newPath))
throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidPath
@ -559,6 +560,7 @@ public void setLength(final int sz) {
* if the size exceeds the 2 GiB barrier imposed by current file
* format limitations.
*/
@SuppressWarnings("boxing")
public void setLength(final long sz) {
if (Integer.MAX_VALUE <= sz)
throw new IllegalArgumentException(MessageFormat.format(JGitText