This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 7a3d5913bb1af40f8730d27a7e3a7ac59bbf3e05 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Jun 18 10:13:15 2019 +0200 CAMEL-13373: Fixed CS --- .../main/java/org/apache/camel/component/stax/StAXProcessor.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/camel-stax/src/main/java/org/apache/camel/component/stax/StAXProcessor.java b/components/camel-stax/src/main/java/org/apache/camel/component/stax/StAXProcessor.java index f401bd6..3034a13 100644 --- a/components/camel-stax/src/main/java/org/apache/camel/component/stax/StAXProcessor.java +++ b/components/camel-stax/src/main/java/org/apache/camel/component/stax/StAXProcessor.java @@ -20,14 +20,13 @@ import javax.xml.stream.XMLStreamReader; import org.xml.sax.ContentHandler; import org.xml.sax.InputSource; -import org.xml.sax.XMLReader; + +import com.ctc.wstx.sr.ValidatingStreamReader; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.support.ExchangeHelper; -import com.ctc.wstx.sr.ValidatingStreamReader; - /** * It uses SAX content handler to handle events. * <p/> @@ -57,7 +56,7 @@ public class StAXProcessor implements Processor { StaxStreamXMLReader reader = new StaxStreamXMLReader(stream); ContentHandler handler; if (this.contentHandlerClass != null) { - handler = (ContentHandler) this.contentHandlerClass.newInstance(); + handler = this.contentHandlerClass.newInstance(); } else { handler = this.contentHandler; }