Ensure DiffFormatter instances are closed
commite0fadc28d9dbb941d5ec54aa97bcd9adb86356d2
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 14 Jan 2017 14:50:58 +0000 (14 15:50 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sat, 14 Jan 2017 15:04:36 +0000 (14 16:04 +0100)
tree9d7d2c5d28157e4b6669c6ce63f73534b4673af0
parent4261f46ab267250679b98a21b1c98dfb3b96f1ba
Ensure DiffFormatter instances are closed

Use try-with-resource.

The remaining instance of this in CreatePatchOperation is the
subject of another commit.[1]

[1] https://git.eclipse.org/r/#/c/88498/

Change-Id: Ibe945f881000fc2ad7a8e098c1dcaa260f273967
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/blame/BlameInformationControl.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java