Author: akazakov
Date: 2011-12-28 19:03:43 -0500 (Wed, 28 Dec 2011)
New Revision: 37571
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/XHTMLValidator.java
Log:
https://issues.jboss.org/browse/JBIDE-10472 CLONE - XHTML Validator hangs eclipse
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-12-28
23:34:54 UTC (rev 37570)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/XHTMLValidator.java 2011-12-29
00:03:43 UTC (rev 37571)
@@ -348,8 +348,8 @@
InputStream stream = null;
try {
URL location = new URL(getSystemId());
- String protocal = location.getProtocol();
- if(!"http".equalsIgnoreCase(protocal) &&
!"https".equalsIgnoreCase(protocal)) {
+ String protocol = location.getProtocol();
+ if(!"http".equalsIgnoreCase(protocol) &&
!"https".equalsIgnoreCase(protocol)) {
URLConnection connect = location.openConnection();
if (!(connect instanceof HttpURLConnection)) {
stream = connect.getInputStream();