Mercurial > hg > release > icedtea7-forest-2.3 > langtools
changeset 1372:8cf15d334ad3 icedtea-2.3.10
8015997: Additional improvement in Javadoc framing
Reviewed-by: jjg
author | bpatel |
---|---|
date | Wed, 05 Jun 2013 14:31:54 -0700 |
parents | b8e6b819473b |
children | e2c5f493844a |
files | src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java Fri Apr 26 15:24:12 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java Wed Jun 05 14:31:54 2013 -0700 @@ -315,7 +315,8 @@ " if (targetPage.indexOf(\":\") != -1 || (targetPage != \"\" && !validURL(targetPage)))" + DocletConstants.NL + " targetPage = \"undefined\";" + DocletConstants.NL + " function validURL(url) {" + DocletConstants.NL + - " if (!(url.indexOf(\".html\") == url.length - 5))" + DocletConstants.NL + + " var pos = url.indexOf(\".html\");" + DocletConstants.NL + + " if (pos == -1 || pos != url.length - 5)" + DocletConstants.NL + " return false;" + DocletConstants.NL + " var allowNumber = false;" + DocletConstants.NL + " var allowSep = false;" + DocletConstants.NL +