Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/MockLogicalResourceMapping.java')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/MockLogicalResourceMapping.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/MockLogicalResourceMapping.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/MockLogicalResourceMapping.java
index 9a51d6397d..a8537e8633 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/MockLogicalResourceMapping.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/MockLogicalResourceMapping.java
@@ -68,7 +68,7 @@ public class MockLogicalResourceMapping extends ResourceMapping {
public ResourceTraversal[] getTraversals(ResourceMappingContext context,
IProgressMonitor monitor) throws CoreException {
SubMonitor sm = SubMonitor.convert(monitor, 3);
- Set<IFile> result = new LinkedHashSet<IFile>();
+ Set<IFile> result = new LinkedHashSet<>();
result.add(file);
try {
List<IFile> dependencies = getDependencies(file, file.getParent());
@@ -103,9 +103,9 @@ public class MockLogicalResourceMapping extends ResourceMapping {
private List<IFile> getDependencies(IStorage storage, IContainer c)
throws CoreException, IOException {
List<IFile> result = new ArrayList<>();
- try (InputStream contents = storage.getContents();) {
- BufferedReader r = new BufferedReader(
- new InputStreamReader(contents, Charset.forName("UTF-8")));
+ try (InputStream contents = storage.getContents();
+ BufferedReader r = new BufferedReader(new InputStreamReader(
+ contents, Charset.forName("UTF-8")))) {
try {
while (true) {
String line = r.readLine();

Back to the top