From e76b410e1327692a39b42bc49466dc21fd1e443c Mon Sep 17 00:00:00 2001 From: Danny van Bruggen Date: Sat, 3 Mar 2018 11:56:38 +0100 Subject: [PATCH] Improve SourceRoot's quality a bit --- .../github/javaparser/utils/SourceRoot.java | 15 ++++++++-- .../javaparser/utils/SourceRootTest.java | 28 +++++++++++++++---- .../utils/{source/root => source.root}/Y.java | 0 3 files changed, 35 insertions(+), 8 deletions(-) rename javaparser-testing/src/test/resources/com/github/javaparser/utils/{source/root => source.root}/Y.java (100%) diff --git a/javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java b/javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java index 02a90ffec7..cb73c0828c 100644 --- a/javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java +++ b/javaparser-core/src/main/java/com/github/javaparser/utils/SourceRoot.java @@ -33,8 +33,9 @@ import static java.nio.file.FileVisitResult.SKIP_SUBTREE; /** - * A collection of Java source files located in one directory and its subdirectories on the file system. Files can be - * parsed and written back one by one or all together. Note that the internal cache used is thread-safe. + * A collection of Java source files located in one directory and its subdirectories on the file system. The root directory + * corresponds to the root of the package structure of the source files within. Files can be parsed and written back one + * by one or all together. Note that the internal cache used is thread-safe. *