diff options
author | pavery | 2006-02-23 15:04:18 +0000 |
---|---|---|
committer | pavery | 2006-02-23 15:04:18 +0000 |
commit | 816ce37a594ce0767ebf4479ffb87628ffa8786d (patch) | |
tree | 9a00daebba6af72ba4dcb3bdbae215cfd82151f0 | |
parent | 4567e0b51caa3d6c83b8912747d12aaf055e6444 (diff) | |
download | webtools.sourceediting-816ce37a594ce0767ebf4479ffb87628ffa8786d.tar.gz webtools.sourceediting-816ce37a594ce0767ebf4479ffb87628ffa8786d.tar.xz webtools.sourceediting-816ce37a594ce0767ebf4479ffb87628ffa8786d.zip |
[128490] should have been using getTextLength() instead of getLength(), as we don't care about trailing whitespace in this case.
-rw-r--r-- | bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java index 4c263f2298..0cf2da9422 100644 --- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java +++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java @@ -1793,7 +1793,7 @@ public class JSPTranslator { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=128490 // length of 11 is the length of jsp:useBean // and saves the expensive getText.equals call - if (r.getType() == DOMRegionContext.XML_TAG_NAME && r.getLength() == 11 && jspReferenceRegion.getText(r).equals("jsp:useBean")) { //$NON-NLS-1$ + if (r.getType() == DOMRegionContext.XML_TAG_NAME && r.getTextLength() == 11 && jspReferenceRegion.getText(r).equals("jsp:useBean")) { //$NON-NLS-1$ isUseBean = true; break; } |