summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/tickets/BranchTicketService.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2015-06-15 08:31:07 -0600
committerJames Moger <james.moger@gitblit.com>2015-06-15 08:31:07 -0600
commitc0c5b206bb8d61fb82f09511f8b0214b64f726f4 (patch)
treed7ec64cfc062b534257aacd98a7c70b4ace8df0c /src/main/java/com/gitblit/tickets/BranchTicketService.java
parent886d7abd2b5b42f3e7184b19cc588e36bf69f84b (diff)
parenta1cee65c7242f69f7e35978d98cea391095d7225 (diff)
downloadgitblit-c0c5b206bb8d61fb82f09511f8b0214b64f726f4.tar.gz
gitblit-c0c5b206bb8d61fb82f09511f8b0214b64f726f4.zip
Merged #257 "Bump to JGit 4.0.0"
Diffstat (limited to 'src/main/java/com/gitblit/tickets/BranchTicketService.java')
-rw-r--r--src/main/java/com/gitblit/tickets/BranchTicketService.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/com/gitblit/tickets/BranchTicketService.java b/src/main/java/com/gitblit/tickets/BranchTicketService.java
index 42189bfd..83966939 100644
--- a/src/main/java/com/gitblit/tickets/BranchTicketService.java
+++ b/src/main/java/com/gitblit/tickets/BranchTicketService.java
@@ -297,7 +297,7 @@ public class BranchTicketService extends ITicketService implements RefsChangedLi
log.error("failed to read " + file, e);
} finally {
if (rw != null) {
- rw.release();
+ rw.close();
}
}
return null;
@@ -353,7 +353,7 @@ public class BranchTicketService extends ITicketService implements RefsChangedLi
} catch (IOException e) {
log.error("", e);
} finally {
- inserter.release();
+ inserter.close();
}
}
@@ -712,7 +712,7 @@ public class BranchTicketService extends ITicketService implements RefsChangedLi
} finally {
// release the treewalk
if (treeWalk != null) {
- treeWalk.release();
+ treeWalk.close();
}
}
} finally {
@@ -811,7 +811,7 @@ public class BranchTicketService extends ITicketService implements RefsChangedLi
// finish the index
builder.finish();
} finally {
- inserter.release();
+ inserter.close();
}
return newIndex;
}
@@ -855,7 +855,7 @@ public class BranchTicketService extends ITicketService implements RefsChangedLi
}
} finally {
if (tw != null) {
- tw.release();
+ tw.close();
}
}
return list;
@@ -913,10 +913,10 @@ public class BranchTicketService extends ITicketService implements RefsChangedLi
rc));
}
} finally {
- revWalk.release();
+ revWalk.close();
}
} finally {
- odi.release();
+ odi.close();
}
return success;
}