in maven-jxr/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java [737:766]
private String beginMultiLineCommentFilter(String line) {
// assert !inJavadocComment;
// assert !inMultiLineComment;
if (line == null || line.equals("")) {
return "";
}
int index = line.indexOf("/*");
// check to see if a multi-line comment starts on this line:
if ((index > -1) && !isInsideString(line, index)) {
String fromIndex = line.substring(index);
if (fromIndex.startsWith("/**") && !(fromIndex.startsWith("/**/"))) {
inJavadocComment = true;
} else {
inMultiLineComment = true;
}
// Return result of other filters + everything after the start
// of the multiline comment. We need to pass the through the
// to the ongoing multiLineComment filter again in case the comment
// ends on the same line.
return stringFilter(line.substring(0, index)) + ongoingMultiLineCommentFilter(fromIndex);
}
// Otherwise, no useful multi-line comment information was found so
// pass the line down to the next filter for processesing.
else {
return stringFilter(line);
}
}