summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/components
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-09-28 13:44:04 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-09-28 13:44:04 -0400
commitf7a10e0e57d6f0ea83643c3d5763ff405af73337 (patch)
tree7a56cbf7e5a8b6fa738d2cf469a86eea14d5d89a /BJC-Utils2/src/main/java/bjc/utils/components
parentba0a3f53a88842a94ea6a1a6d45f61416b593e47 (diff)
Formatting pass
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/components')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java40
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java3
2 files changed, 23 insertions, 20 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 bb2d421..6c1bb71 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/components/FileComponentRepository.java
@@ -25,7 +25,8 @@ import bjc.utils.funcutils.FileUtils;
* @param <ComponentType>
* The type of component being read in
*/
-public class FileComponentRepository<ComponentType extends IDescribedComponent>
+public class FileComponentRepository<
+ ComponentType extends IDescribedComponent>
implements IComponentRepository<ComponentType> {
// The logger to use for storing data about this class
private static final Logger CLASS_LOGGER = Logger
@@ -71,24 +72,25 @@ public class FileComponentRepository<ComponentType extends IDescribedComponent>
// Predicate to use to traverse all the files in a directory, but
// not recurse into sub-directories
- BiPredicate<Path, BasicFileAttributes> firstLevelTraverser = (pth,
- attr) -> {
- if (attr.isDirectory() && !isFirstDir.getValue()) {
-
- /*
- * Skip directories, they probably have component support
- * files.
- */
- return false;
- }
-
- /*
- * Don't skip the first directory, that's the parent directory
- */
- isFirstDir.replace(false);
-
- return true;
- };
+ BiPredicate<Path,
+ BasicFileAttributes> firstLevelTraverser = (pth, attr) -> {
+ if (attr.isDirectory() && !isFirstDir.getValue()) {
+
+ /*
+ * Skip directories, they probably have component
+ * support files.
+ */
+ return false;
+ }
+
+ /*
+ * Don't skip the first directory, that's the parent
+ * directory
+ */
+ isFirstDir.replace(false);
+
+ return true;
+ };
// Try reading components
try {
diff --git a/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java b/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java
index 1d322af..a4dbfde 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java
@@ -12,7 +12,8 @@ import bjc.utils.funcdata.IMap;
* @param <ComponentType>
* The type of components contained in this repository
*/
-public interface IComponentRepository<ComponentType extends IDescribedComponent> {
+public interface IComponentRepository<
+ ComponentType extends IDescribedComponent> {
/**
* Get all of the components this repository knows about
*