From: Matthias Sohn Date: Fri, 10 Apr 2015 00:37:04 +0000 (+0200) Subject: Silence false potential null pointer access warnings X-Git-Tag: v4.0.0.201506020755-rc3~1^2~11^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F45700%2F5;p=jgit.git Silence false potential null pointer access warnings Change-Id: I30c074a1b3436e47316b2eb2f083708161182d32 --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java index e03488b3cf..75b0646ed0 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java @@ -533,6 +533,7 @@ public final class DfsPackFile { return ByteBuffer.wrap(copyBuf, 0, bs); } + @SuppressWarnings("null") void copyAsIs(PackOutputStream out, DfsObjectToPack src, boolean validate, DfsReader ctx) throws IOException, StoredObjectRepresentationNotAvailableException { @@ -836,6 +837,7 @@ public final class DfsPackFile { return buf.position(); } + @SuppressWarnings("null") ObjectLoader load(DfsReader ctx, long pos) throws IOException { try {