diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2016-01-18 22:07:10 +0200 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2016-01-18 22:07:10 +0200 |
commit | 35f2e37960e3091f76ca2a1e42a7354f98ea4d6d (patch) | |
tree | f609de491df16176dae1cf0c122a3d120266b06d /pf4j | |
parent | c3afe7ede0b4cdfe70d7a63b3612cef46fed0f67 (diff) | |
download | pf4j-35f2e37960e3091f76ca2a1e42a7354f98ea4d6d.tar.gz pf4j-35f2e37960e3091f76ca2a1e42a7354f98ea4d6d.zip |
fix wildcard imports
Diffstat (limited to 'pf4j')
-rw-r--r-- | pf4j/src/main/java/ro/fortsoft/pf4j/ServiceProviderExtensionFinder.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ServiceProviderExtensionFinder.java b/pf4j/src/main/java/ro/fortsoft/pf4j/ServiceProviderExtensionFinder.java index 95bf879..80bb412 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ServiceProviderExtensionFinder.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/ServiceProviderExtensionFinder.java @@ -26,9 +26,21 @@ import java.io.Reader; import java.net.URISyntaxException; import java.net.URL; import java.nio.charset.StandardCharsets; -import java.nio.file.*; +import java.nio.file.FileSystem; +import java.nio.file.FileSystems; +import java.nio.file.FileVisitOption; +import java.nio.file.FileVisitResult; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; -import java.util.*; +import java.util.Collections; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; /** * The ServiceLoader base implementation for ExtensionFinder. @@ -61,6 +73,7 @@ public class ServiceProviderExtensionFinder extends AbstractExtensionFinder { extensionPath = Paths.get(url.toURI()); } Files.walkFileTree(extensionPath, Collections.<FileVisitOption>emptySet(), 1, new SimpleFileVisitor<Path>() { + @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { log.debug("Read '{}'", file); @@ -68,6 +81,7 @@ public class ServiceProviderExtensionFinder extends AbstractExtensionFinder { ServiceProviderExtensionStorage.read(reader, bucket); return FileVisitResult.CONTINUE; } + }); } |