diff options
author | aclement <aclement> | 2006-01-16 10:59:49 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-01-16 10:59:49 +0000 |
commit | 2208126bd1792695ff11d86118c53a9160ab9fee (patch) | |
tree | e15646773a691168888ce592452fcd306cdfaff8 /ajdoc/src | |
parent | 3f77e755e504d24e0dc6fd640972d56de15a6bef (diff) | |
download | aspectj-2208126bd1792695ff11d86118c53a9160ab9fee.tar.gz aspectj-2208126bd1792695ff11d86118c53a9160ab9fee.zip |
pr121711 - from Helen - removing >1.3 apis that were introduced in previous patch.
Diffstat (limited to 'ajdoc/src')
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java index ba68dc299..87dc9d72c 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java @@ -228,7 +228,7 @@ class HtmlDecorator { int secondClassStartIndex = fileContents.toString().indexOf("class <B>"); if (secondClassStartIndex != -1) { String name = decl.toSignatureString(); - int classEndIndex = fileContents.indexOf(name + "</B><DT>"); + int classEndIndex = fileContents.toString().indexOf(name + "</B><DT>"); if (secondClassStartIndex != -1 && classEndIndex != -1) { StringBuffer sb = new StringBuffer(fileContents.toString(). substring(secondClassStartIndex,classEndIndex)); @@ -601,8 +601,16 @@ class HtmlDecorator { + "." + currDecl.toLabelString(); // need to replace " with quot; otherwise the links wont work + // for 'matches declare' relationship + StringBuffer sb = new StringBuffer(currDecl.toLabelString()); + int nextQuote = sb.toString().indexOf("\""); + while (nextQuote != -1) { + sb.deleteCharAt(nextQuote); + sb.insert(nextQuote,"quot;"); + nextQuote = sb.toString().indexOf("\""); + } hrefLink += currDecl.getParent().toLinkLabelString() + ".html" - + "#" + currDecl.toLabelString().replaceAll("\"","quot;"); + + "#" + sb.toString(); if (!addedNames.contains(hrefName)) { adviceDoc = adviceDoc + |