Browse Source

Silence false potential null pointer access warnings

Change-Id: I30c074a1b3436e47316b2eb2f083708161182d32
stable-4.1
Matthias Sohn 10 years ago
parent
commit
bb48901ddf
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java

2
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 {

Loading…
Cancel
Save