src/share/classes/com/sun/tools/javac/parser/DocCommentParser.java

changeset 2413
fe033d997ddf
parent 2268
b4e592c5314d
child 2525
2eb010b6cb22
child 2628
a5eb8f677bd4
equal deleted inserted replaced
2412:bf8edbcae43a 2413:fe033d997ddf
55 import com.sun.tools.javac.util.Log; 55 import com.sun.tools.javac.util.Log;
56 import com.sun.tools.javac.util.Name; 56 import com.sun.tools.javac.util.Name;
57 import com.sun.tools.javac.util.Names; 57 import com.sun.tools.javac.util.Names;
58 import com.sun.tools.javac.util.Options; 58 import com.sun.tools.javac.util.Options;
59 import com.sun.tools.javac.util.Position; 59 import com.sun.tools.javac.util.Position;
60 import com.sun.tools.javac.util.StringUtils;
60 import static com.sun.tools.javac.util.LayoutCharacters.*; 61 import static com.sun.tools.javac.util.LayoutCharacters.*;
61 62
62 /** 63 /**
63 * 64 *
64 * <p><b>This is NOT part of any supported API. 65 * <p><b>This is NOT part of any supported API.
991 992
992 Set<String> htmlBlockTags = new HashSet<String>(Arrays.asList( 993 Set<String> htmlBlockTags = new HashSet<String>(Arrays.asList(
993 "h1", "h2", "h3", "h4", "h5", "h6", "p", "pre")); 994 "h1", "h2", "h3", "h4", "h5", "h6", "p", "pre"));
994 995
995 protected boolean isSentenceBreak(Name n) { 996 protected boolean isSentenceBreak(Name n) {
996 return htmlBlockTags.contains(n.toString().toLowerCase()); 997 return htmlBlockTags.contains(StringUtils.toLowerCase(n.toString()));
997 } 998 }
998 999
999 protected boolean isSentenceBreak(DCTree t) { 1000 protected boolean isSentenceBreak(DCTree t) {
1000 switch (t.getKind()) { 1001 switch (t.getKind()) {
1001 case START_ELEMENT: 1002 case START_ELEMENT:

mercurial