29 |
29 |
30 import com.sun.javadoc.*; |
30 import com.sun.javadoc.*; |
31 import com.sun.tools.doclets.formats.html.markup.*; |
31 import com.sun.tools.doclets.formats.html.markup.*; |
32 import com.sun.tools.doclets.internal.toolkit.*; |
32 import com.sun.tools.doclets.internal.toolkit.*; |
33 import com.sun.tools.doclets.internal.toolkit.util.*; |
33 import com.sun.tools.doclets.internal.toolkit.util.*; |
|
34 import com.sun.tools.javac.util.StringUtils; |
34 |
35 |
35 /** |
36 /** |
36 * Writes method documentation in HTML format. |
37 * Writes method documentation in HTML format. |
37 * |
38 * |
38 * <p><b>This is NOT part of any supported API. |
39 * <p><b>This is NOT part of any supported API. |
336 protected String parseCodeTag(String tag){ |
337 protected String parseCodeTag(String tag){ |
337 if(tag == null){ |
338 if(tag == null){ |
338 return ""; |
339 return ""; |
339 } |
340 } |
340 |
341 |
341 String lc = tag.toLowerCase(); |
342 String lc = StringUtils.toLowerCase(tag); |
342 int begin = lc.indexOf("<code>"); |
343 int begin = lc.indexOf("<code>"); |
343 int end = lc.indexOf("</code>"); |
344 int end = lc.indexOf("</code>"); |
344 if(begin == -1 || end == -1 || end <= begin){ |
345 if(begin == -1 || end == -1 || end <= begin){ |
345 return tag; |
346 return tag; |
346 } else { |
347 } else { |