Define bean in configuration class quickfix

This commit is contained in:
aboyko
2022-10-07 11:25:34 -04:00
parent c5da49443d
commit d3ef3c92e4
9 changed files with 263 additions and 26 deletions

View File

@@ -14,13 +14,10 @@ import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.nio.file.Files;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.slf4j.Logger;
@@ -169,18 +166,4 @@ public class IClasspathUtil {
.collect(CollectorUtil.toImmutableList());
}
public static Set<String> getBinaryClasspathEntries(IJavaProject project) throws Exception {
if (project == null) {
return Collections.emptySet();
} else {
IClasspath classpath = project.getClasspath();
Stream<File> classpathEntries = IClasspathUtil.getAllBinaryRoots(classpath).stream();
return classpathEntries
.filter(file -> file.exists())
.map(file -> file.getAbsolutePath()).collect(Collectors.toSet());
}
}
}