Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpavery2006-02-23 15:04:18 +0000
committerpavery2006-02-23 15:04:18 +0000
commit816ce37a594ce0767ebf4479ffb87628ffa8786d (patch)
tree9a00daebba6af72ba4dcb3bdbae215cfd82151f0
parent4567e0b51caa3d6c83b8912747d12aaf055e6444 (diff)
downloadwebtools.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.java2
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;
}

Back to the top