Split a misleading comment 87/104587/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 26 Feb 2023 14:56:15 +0000 (15:56 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 26 Feb 2023 14:56:15 +0000 (15:56 +0100)
We scan files in two steps, but the comment indicates we do that
in one go. Correct that.

Change-Id: I9e3c77006773486ad06cd923edba18652f86f010
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesProcessor.java

index d06acc6ad0267b372ca6e55781e3f574c73407af..31f3e028aa85b1852fcc428258f29a4ccfe8c4a7 100644 (file)
@@ -120,11 +120,7 @@ class YangToSourcesProcessor {
             // FIXME: look for persisted state and restore it
         }
 
-        /*
-         * Collect all files which affect YANG context. This includes all
-         * files in current project and optionally any jars/files in the
-         * dependencies.
-         */
+        // Collect all files in the current project.
         final List<File> yangFilesInProject;
         try {
             yangFilesInProject = listFiles(yangFilesRootDir, excludedFiles);
@@ -151,6 +147,8 @@ class YangToSourcesProcessor {
 
         LOG.info("{} Inspecting {}", LOG_PREFIX, yangFilesRootDir);
 
+        // All files which affect YANG context. This minimally includes all files in the current project, but optionally
+        // may include any YANG files in the dependencies.
         final Collection<File> allFiles = new ArrayList<>(yangFilesInProject);
         final Collection<ScannedDependency> dependencies;
         if (inspectDependencies) {