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:
authornsandonato2010-11-02 22:04:12 +0000
committernsandonato2010-11-02 22:04:12 +0000
commita8fe46071ba2f7ce454e05212dd46cc42efe1f91 (patch)
tree218336443db18630ace3e18ad7fb1bdcbc19e795 /bundles/org.eclipse.jst.jsp.core
parent863b9d9947a5d4fece0a989fc877fe07dd067c2a (diff)
downloadwebtools.sourceediting-a8fe46071ba2f7ce454e05212dd46cc42efe1f91.tar.gz
webtools.sourceediting-a8fe46071ba2f7ce454e05212dd46cc42efe1f91.tar.xz
webtools.sourceediting-a8fe46071ba2f7ce454e05212dd46cc42efe1f91.zip
[201481] improve jsp action validator performance
Diffstat (limited to 'bundles/org.eclipse.jst.jsp.core')
-rw-r--r--bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/JSPActionValidator.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/JSPActionValidator.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/JSPActionValidator.java
index ad213e192a..4152cce72d 100644
--- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/JSPActionValidator.java
+++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/JSPActionValidator.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2009 IBM Corporation and others.
+ * Copyright (c) 2008, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -323,6 +323,8 @@ public class JSPActionValidator extends JSPValidator {
List trackers = manager.getTaglibTrackers();
for (Iterator it = trackers.iterator(); it.hasNext();) {
TaglibTracker tracker = (TaglibTracker) it.next();
+ if (tracker.getElements().getLength() == 0)
+ continue;
String prefix = tracker.getPrefix();
fTaglibPrefixes.add(prefix);
}

Back to the top