diff options
author | nsandonato | 2010-11-02 22:04:12 +0000 |
---|---|---|
committer | nsandonato | 2010-11-02 22:04:12 +0000 |
commit | a8fe46071ba2f7ce454e05212dd46cc42efe1f91 (patch) | |
tree | 218336443db18630ace3e18ad7fb1bdcbc19e795 /bundles/org.eclipse.jst.jsp.core | |
parent | 863b9d9947a5d4fece0a989fc877fe07dd067c2a (diff) | |
download | webtools.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.java | 4 |
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); } |