aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-07-11 14:33:17 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-07-12 11:16:27 +0000
commit1ce295815438ad91239e5b062e445ee876696dc7 (patch)
tree71049c9ec2859c9b0757eedd93b2458d48a968fc /src/main
parent8926ee8bee3e19f7aaecf70cae7fefaf0cd1752f (diff)
Global cleanup change.
-- MOS_MIGRATED_REVID=127084529
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/java/JavaUtil.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaUtil.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaUtil.java
index e5677d813e..eaddad0dfc 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaUtil.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaUtil.java
@@ -83,8 +83,7 @@ public final class JavaUtil {
final boolean isSrc = "src".equals(path.getSegment(rootIndex));
int checkMavenIndex = isSrc ? rootIndex : -1;
if (rootIndex == 0 || isSrc) {
- // Check for a nested "src" directory.
- // Also, to support an existing case, "javatests" within "src".
+ // Check for a nested root directory.
for (int i = rootIndex + 1, max = path.segmentCount() - 2; i <= max; i++) {
String segment = path.getSegment(i);
if ("src".equals(segment)
@@ -132,8 +131,8 @@ public final class JavaUtil {
* result in "foo.bar.wiz".
*
* TODO(bazel-team): (2011) We need to have a more robust way to determine the Java root
- * of a relative path rather than simply trying to find the "java" or
- * "javatests" directory.
+ * of a relative path rather than simply trying to find the "java" or "javatests"
+ * or "src" directory.
*/
public static String getJavaFullClassname(PathFragment path) {
PathFragment javaPath = getJavaPath(path);