]> source.dussan.org Git - jgit.git/commitdiff
Hide two warnings about boxing 94/5494/4
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 16 Apr 2012 21:34:47 +0000 (23:34 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 16 Apr 2012 21:34:47 +0000 (23:34 +0200)
Change-Id: I1cb7cdb81481019f4a55221d38d771fcc9451529
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java

index 0ff437e625efb290b3f8c99067fd12732b1eb9cf..71d9c4bdf9c46204ddd62c324e475153d7bb83c1 100644 (file)
@@ -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