langtools/src/java.compiler/share/classes/javax/tools/StandardLocation.java
changeset 42261 bb52b5514ad5
parent 36526 3b41f1c69604
child 43767 9cff98a149cb
--- a/langtools/src/java.compiler/share/classes/javax/tools/StandardLocation.java	Wed Nov 16 11:53:24 2016 -0800
+++ b/langtools/src/java.compiler/share/classes/javax/tools/StandardLocation.java	Wed Nov 16 12:12:02 2016 -0800
@@ -109,7 +109,9 @@
      * property must hold: {@code locationFor(x) ==
      * locationFor(y)} if and only if {@code x.equals(y)}.
      * The returned location will be an output location if and only if
-     * name ends with {@code "_OUTPUT"}.
+     * name ends with {@code "_OUTPUT"}. It will be considered to
+     * be a module-oriented location if the name contains the word
+     * {@code "MODULE"}.
      *
      * @param name a name
      * @return a location
@@ -149,7 +151,7 @@
     }
 
     @Override
-    public boolean isModuleLocation() {
+    public boolean isModuleOrientedLocation() {
         switch (this) {
             case MODULE_SOURCE_PATH:
             case ANNOTATION_PROCESSOR_MODULE_PATH: