Removed duplicate empty classpath data

This commit is contained in:
nsingh
2018-02-01 12:42:33 -08:00
parent 176a40b4b3
commit 2c634432ed
2 changed files with 1 additions and 7 deletions

View File

@@ -17,7 +17,6 @@ import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Optional;
import java.util.concurrent.Callable;
import java.util.concurrent.atomic.AtomicReference;
@@ -220,7 +219,7 @@ public class DelegatingCachedClasspath<T extends IClasspath> implements IClasspa
return data;
}
}
return EMPTY_CLASSPATH_DATA;
return ClasspathData.EMPTY_CLASSPATH_DATA;
}
@Override

View File

@@ -12,7 +12,6 @@ package org.springframework.ide.vscode.commons.java;
import java.io.File;
import java.nio.file.Path;
import java.util.Collections;
import java.util.Optional;
import java.util.function.Predicate;
@@ -63,8 +62,4 @@ public interface IClasspath {
Optional<File> findClasspathResourceContainer(String fqName);
ClasspathData createClasspathData() throws Exception;
public static final ClasspathData EMPTY_CLASSPATH_DATA = new ClasspathData(null, Collections.emptySet(),
Collections.emptySet(), null);
}