From bb48901ddff79f0d81000b7e383fba9a8be6d23c Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 10 Apr 2015 02:37:04 +0200 Subject: [PATCH] Silence false potential null pointer access warnings Change-Id: I30c074a1b3436e47316b2eb2f083708161182d32 --- .../src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java | 2 ++ 1 file changed, 2 insertions(+) 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 e03488b3c..75b0646ed 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 @@ private ByteBuffer newCopyBuffer(PackOutputStream out, ReadableChannel rc) { 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 @@ private static int read(ReadableChannel rc, ByteBuffer buf) return buf.position(); } + @SuppressWarnings("null") ObjectLoader load(DfsReader ctx, long pos) throws IOException { try {