Переглянути джерело

Hide two warnings about boxing

Change-Id: I1cb7cdb81481019f4a55221d38d771fcc9451529
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v2.0.0.201206130900-r
Robin Rosenberg 12 роки тому
джерело
коміт
bf33a6eeed

+ 2
- 0
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java Переглянути файл

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

Завантаження…
Відмінити
Зберегти