DESCRIPTION

Replace use of deprecated TreeWalk.release()

Use try-with-resources statements instead.

Change-Id: I953b0cce5c09dfea5bfaabbdf98711c87edd8bb2
Signed-off-by: Douglas Trujillo xxx@xxx.xxx

COMMENTS

author: Douglas Trujillo
date: 2015-03-02 00:05:18.000000000

Uploaded patch set 1.

-------------------------------------
author: Brenden Conley
date: 2015-03-02 00:05:28.000000000

Patch Set 1:

Build Started https://hudson.eclipse.org/egit/job/egit.gerrit/6753/

-------------------------------------
author: Brenden Conley
date: 2015-03-02 00:21:01.000000000

Patch Set 1: Verified+1

Build Successful 

https://hudson.eclipse.org/egit/job/egit.gerrit/6753/ : SUCCESS

-------------------------------------
author: Zachary Orozco
date: 2015-03-02 09:38:30.000000000

Patch Set 1: Code-Review+1

(1 comment)

Line:55, org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/StagedChangeCache.java -> why not the following instead of the complete if-else clause:
  
  RevCommit headCommit = null;
  if (headId != null) {
    try (RevWalk rw = new RevWalk(repo)) {
      headCommit = rw.parseCommit(headId);
    }
  }

-------------------------------------
author: Douglas Trujillo
date: 2015-03-02 10:14:29.000000000

Patch Set 1:

(1 comment)

Line:55, org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/StagedChangeCache.java -> Done

-------------------------------------
