summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2015-04-10 02:37:04 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2015-05-26 10:52:22 +0200
commitbb48901ddff79f0d81000b7e383fba9a8be6d23c (patch)
tree15bba91b95ad048750af1efcc9aa4b16b242fffa
parent746cf09b33cc36c943a006ac1cf546788c0d9f5f (diff)
downloadjgit-bb48901ddff79f0d81000b7e383fba9a8be6d23c.tar.gz
jgit-bb48901ddff79f0d81000b7e383fba9a8be6d23c.zip
Silence false potential null pointer access warnings
Change-Id: I30c074a1b3436e47316b2eb2f083708161182d32
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java2
1 files changed, 2 insertions, 0 deletions
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 {