in maven-jxr/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java [669:701]
private String ongoingMultiLineCommentFilter(String line) {
if (line == null || line.equals("")) {
return "";
}
final String[] tags = inJavadocComment
? new String[] {JAVADOC_COMMENT_START, JAVADOC_COMMENT_END}
: inMultiLineComment ? new String[] {COMMENT_START, COMMENT_END} : null;
if (tags == null) {
// pass the line down to the next filter for processing.
return inlineCommentFilter(line);
}
int index = line.indexOf("*/");
// only filter the portion without the end-of-comment,
// since * and / seem to be valid URI characters
String comment = uriFilter(index < 0 ? line : line.substring(0, index));
if (index >= 0) {
inJavadocComment = false;
inMultiLineComment = false;
}
StringBuilder buf = new StringBuilder(tags[0]).append(comment);
if (index >= 0) {
buf.append("*/");
}
buf.append(tags[1]);
if (index >= 0 && line.length() > index + 2) {
buf.append(inlineCommentFilter(line.substring(index + 2)));
}
return buf.toString();
}