]> source.dussan.org Git - jgit.git/commitdiff
Remove unused warning suppression 01/190701/2
authorFabio Ponciroli <ponch78@gmail.com>
Fri, 11 Feb 2022 08:19:31 +0000 (09:19 +0100)
committerFabio Ponciroli <ponch78@gmail.com>
Fri, 11 Feb 2022 08:42:06 +0000 (09:42 +0100)
SuppressWarnings is not used. Remove  to avoid
warnings at compile  time.

Change-Id: I84e3e57017cf9fd68d3377f866d4dd907ccde454

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/LargePackedWholeObject.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

index b0612f9395b35f1fc20c39c4771836bde4002146..cd4f168d8680bdad22c8f2baabe18418b7322a32 100644 (file)
@@ -73,7 +73,6 @@ final class LargePackedWholeObject extends ObjectLoader {
        public ObjectStream openStream() throws MissingObjectException, IOException {
                PackInputStream packIn;
                // ctx is closed by PackInputStream, or explicitly in the finally block
-               @SuppressWarnings("resource")
                DfsReader ctx = db.newReader();
                try {
                        try {
index 0a7eb17f05d477706a2636e276921348a36c27d9..b5062fdd1ab8073fc00d9aaf3653c37d63aa0d3e 100644 (file)
@@ -2339,7 +2339,7 @@ public class UploadPack {
                                                : req.getDepth() - 1;
                                pw.setShallowPack(req.getDepth(), unshallowCommits);
 
-                               @SuppressWarnings("resource") // Ownership is transferred below
+                               // Ownership is transferred below
                                DepthWalk.RevWalk dw = new DepthWalk.RevWalk(
                                                walk.getObjectReader(), walkDepth);
                                dw.setDeepenSince(req.getDeepenSince());