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: |