Author: akazakov
Date: 2011-10-05 20:43:27 -0400 (Wed, 05 Oct 2011)
New Revision: 35409
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/XHTMLValidator.java
Log:
https://issues.jboss.org/browse/JBIDE-9846 Fixed infinite loop in XHTM validator
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/XHTMLValidator.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/XHTMLValidator.java 2011-10-06
00:06:18 UTC (rev 35408)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/XHTMLValidator.java 2011-10-06
00:43:27 UTC (rev 35409)
@@ -353,19 +353,11 @@
}
return qName.toString();
}
-
- @Override
- public void error(SAXParseException e) throws SAXException {
- }
- @Override
- public void fatalError(SAXParseException e) throws SAXException {
- }
-
List<ElementLocation> getNonPairedOpenElements() {
return nonPairedOpenElements;
}
-
+
List<ElementLocation> getNonPairedCloseElements() {
return nonPairedCloseElements;
}
@@ -373,7 +365,7 @@
private int getCurrentLocation() {
if (locator == null)
return 0;
-
+
int line = locator.getLineNumber() - 1;
int lineOffset = locator.getColumnNumber() - 1;
try {