We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9586d1 + 2f15177 commit f9addabCopy full SHA for f9addab
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
@@ -2369,7 +2369,8 @@ else if (ref.getName().startsWith(Constants.R_HEADS))
2369
: req.getDepth() - 1;
2370
pw.setShallowPack(req.getDepth(), unshallowCommits);
2371
2372
- // Ownership is transferred below
+ // dw borrows the reader from walk which is closed by #close
2373
+ @SuppressWarnings("resource")
2374
DepthWalk.RevWalk dw = new DepthWalk.RevWalk(
2375
walk.getObjectReader(), walkDepth);
2376
dw.setDeepenSince(req.getDeepenSince());
0 commit comments