Remove unused warning suppression
SuppressWarnings is not used. Remove to avoid warnings at compile time. Change-Id: I84e3e57017cf9fd68d3377f866d4dd907ccde454
This commit is contained in:
parent
2883762219
commit
db2d379c9c
|
@ -73,7 +73,6 @@ public byte[] getCachedBytes() throws LargeObjectException {
|
||||||
public ObjectStream openStream() throws MissingObjectException, IOException {
|
public ObjectStream openStream() throws MissingObjectException, IOException {
|
||||||
PackInputStream packIn;
|
PackInputStream packIn;
|
||||||
// ctx is closed by PackInputStream, or explicitly in the finally block
|
// ctx is closed by PackInputStream, or explicitly in the finally block
|
||||||
@SuppressWarnings("resource")
|
|
||||||
DfsReader ctx = db.newReader();
|
DfsReader ctx = db.newReader();
|
||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -2339,7 +2339,7 @@ else if (ref.getName().startsWith(Constants.R_HEADS))
|
||||||
: req.getDepth() - 1;
|
: req.getDepth() - 1;
|
||||||
pw.setShallowPack(req.getDepth(), unshallowCommits);
|
pw.setShallowPack(req.getDepth(), unshallowCommits);
|
||||||
|
|
||||||
@SuppressWarnings("resource") // Ownership is transferred below
|
// Ownership is transferred below
|
||||||
DepthWalk.RevWalk dw = new DepthWalk.RevWalk(
|
DepthWalk.RevWalk dw = new DepthWalk.RevWalk(
|
||||||
walk.getObjectReader(), walkDepth);
|
walk.getObjectReader(), walkDepth);
|
||||||
dw.setDeepenSince(req.getDeepenSince());
|
dw.setDeepenSince(req.getDeepenSince());
|
||||||
|
|
Loading…
Reference in New Issue