]> source.dussan.org Git - jgit.git/commitdiff
Silence false potential null pointer access warnings 00/45700/5
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 10 Apr 2015 00:37:04 +0000 (02:37 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 26 May 2015 08:52:22 +0000 (10:52 +0200)
Change-Id: I30c074a1b3436e47316b2eb2f083708161182d32

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java

index e03488b3cf1641fb8c63b6e1f45f0165b19b8e8c..75b0646ed0d2dbb141d6b2f8b5f0a4f0343130aa 100644 (file)
@@ -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 {