diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-04-22 14:29:05 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-04-22 14:29:05 -0400 |
| commit | b65b705c391bb772bc41269bce5243c1cc88969d (patch) | |
| tree | 504ab01aa5faff923a3b278843c41059a4ca2a95 /BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java | |
| parent | e5c81a00b31a12933cf06aaeb94877dceb3ef8dd (diff) | |
Formatting changes
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java b/BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java index 53219fb..8b0d303 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java +++ b/BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java @@ -7,9 +7,6 @@ import java.nio.file.attribute.BasicFileAttributes; import java.util.function.BiPredicate; import java.util.function.Function; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import bjc.utils.data.IHolder; import bjc.utils.data.Identity; import bjc.utils.funcdata.FunctionalList; @@ -18,6 +15,9 @@ import bjc.utils.funcdata.IFunctionalList; import bjc.utils.funcdata.IFunctionalMap; import bjc.utils.funcutils.FileUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + /** * A component repository that loads its components from files in a * directory @@ -30,8 +30,8 @@ import bjc.utils.funcutils.FileUtils; public class FileComponentRepository<E extends IDescribedComponent> implements IComponentRepository<E> { - private static final Logger CLASS_LOGGER = - LoggerFactory.getLogger(FileComponentRepository.class); + private static final Logger CLASS_LOGGER = LoggerFactory + .getLogger(FileComponentRepository.class); /** * The internal storage of components @@ -70,19 +70,19 @@ public class FileComponentRepository<E extends IDescribedComponent> IHolder<Boolean> isFirstDir = new Identity<>(true); - BiPredicate<Path, BasicFileAttributes> firstLevelTraverser = - (pth, attr) -> { - if (attr.isDirectory() && !isFirstDir.getValue()) { - // Don't skip the first directory, that's the - // parent - isFirstDir.replace(false); - // Skip directories, they probably have - // component - return false; - } - - return true; - }; + BiPredicate<Path, BasicFileAttributes> firstLevelTraverser = (pth, + attr) -> { + if (attr.isDirectory() && !isFirstDir.getValue()) { + // Don't skip the first directory, that's the + // parent + isFirstDir.replace(false); + // Skip directories, they probably have + // component + return false; + } + + return true; + }; try { FileUtils.traverseDirectory(sourceDirectory, |
