From 8dec854fdfecc0880dd6c3dd09417f63652e90a4 Mon Sep 17 00:00:00 2001 From: sweinreuter Date: Mon, 31 Jan 2011 11:24:02 +0100 Subject: [PATCH] do not log PCE + greenify --- .../plugins/relaxNG/validation/XmlInstanceValidator.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/relaxng/src/org/intellij/plugins/relaxNG/validation/XmlInstanceValidator.java b/plugins/relaxng/src/org/intellij/plugins/relaxNG/validation/XmlInstanceValidator.java index 02a835452697..04e308ea328b 100644 --- a/plugins/relaxng/src/org/intellij/plugins/relaxNG/validation/XmlInstanceValidator.java +++ b/plugins/relaxng/src/org/intellij/plugins/relaxNG/validation/XmlInstanceValidator.java @@ -30,6 +30,7 @@ import com.thaiopensource.util.PropertyMapBuilder; import com.thaiopensource.validate.Schema; import com.thaiopensource.validate.ValidateProperty; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; import org.xml.sax.ContentHandler; import org.xml.sax.ErrorHandler; import org.xml.sax.SAXException; @@ -41,7 +42,10 @@ import org.xml.sax.SAXParseException; * Date: 30.07.2007 */ public class XmlInstanceValidator { - private static final Logger LOG = Logger.getInstance("#org.intellij.plugins.relaxNG.validation.MessageViewHelper"); + private static final Logger LOG = Logger.getInstance("org.intellij.plugins.relaxNG.validation.XmlInstanceValidator"); + + private XmlInstanceValidator() { + } public static void doValidation(@NotNull final XmlDocument doc, final Validator.ValidationHost host, final XmlFile descriptorFile) { try { @@ -63,7 +67,7 @@ public class XmlInstanceValidator { doc.accept(new Psi2SaxAdapter(handler)); } catch (ProcessCanceledException e) { - LOG.error(e); + throw e; } catch (RuntimeException e) { LOG.error(e); } catch (Exception e) { @@ -106,6 +110,7 @@ public class XmlInstanceValidator { }); } + @Nullable public static ErrorHandler create(XmlDocument doc, Validator.ValidationHost host) { final XmlTag rootTag = doc.getRootTag(); if (rootTag == null) {