Remove unused warning suppression

SuppressWarnings is not used. Remove  to avoid
warnings at compile  time.

Change-Id: I84e3e57017cf9fd68d3377f866d4dd907ccde454
This commit is contained in:
Fabio Ponciroli 2022-02-11 09:19:31 +01:00
parent 2883762219
commit db2d379c9c
2 changed files with 1 additions and 2 deletions

View File

@ -73,7 +73,6 @@ public byte[] getCachedBytes() throws LargeObjectException {
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 {

View File

@ -2339,7 +2339,7 @@ else if (ref.getName().startsWith(Constants.R_HEADS))
: 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());