Browse Source

Merge "Silence false potential null pointer access warnings"

stable-4.1
Shawn Pearce 10 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
5426ba2778
  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