aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-04-16 23:34:47 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2012-04-16 23:34:47 +0200
commitbf33a6eeedb121128fc020d9e990730348b08caa (patch)
tree675a60b8e51f72960ff859e224ddc89977bce435
parent0e8f3a62346918ef32929d804e0cbcc29b2ff3c4 (diff)
downloadjgit-bf33a6eeedb121128fc020d9e990730348b08caa.tar.gz
jgit-bf33a6eeedb121128fc020d9e990730348b08caa.zip
Hide two warnings about boxing
Change-Id: I1cb7cdb81481019f4a55221d38d771fcc9451529 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java
index 0ff437e625..71d9c4bdf9 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java
@@ -258,6 +258,7 @@ public class DirCacheEntry {
* 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 class DirCacheEntry {
* 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