DESCRIPTION

Replace deprecated RevWalk.close()

Use try-with-resources statements instead.

Change-Id: I05ba3440a5c1b55afb2d759088c25ad22bee24e6
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:36:38.000000000

Patch Set 1:

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

-------------------------------------
author: Brenden Conley
date: 2015-03-02 00:52:23.000000000

Patch Set 1: Verified+1

Build Successful 

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

-------------------------------------
author: Zachary Orozco
date: 2015-03-02 08:52:01.000000000

Patch Set 1: Code-Review+1

(1 comment)

Line:210, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/reflog/ReflogView.java -> why not:
  
  private RevCommit getCommit(final ReflogEntry entry) {
    try (RevWalk walk = new RevWalk(getRepository())) {
      walk.setRetainBody(true);
      return walk.parseCommit(entry.getNewId());
    } catch (IOException ignored) {
      return null;
    }
  }

-------------------------------------
author: Douglas Trujillo
date: 2015-03-02 09:11:35.000000000

Patch Set 1:

(1 comment)

Line:210, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/reflog/ReflogView.java -> Done

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