[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-commits ] SF.net SVN: jedit:[23436] plugins/XML/trunk/xml/parser/XercesParserImpl. java
From:       kerik-sf () users ! sourceforge ! net
Date:       2014-03-11 18:43:44
Message-ID: E1WNReU-000532-II () sfs-ml-1 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 23436
          http://sourceforge.net/p/jedit/svn/23436
Author:   kerik-sf
Date:     2014-03-11 18:43:43 +0000 (Tue, 11 Mar 2014)
Log Message:
-----------
fix unused imports and missing serialVersionUID

Modified Paths:
--------------
    plugins/XML/trunk/xml/parser/XercesParserImpl.java

Modified: plugins/XML/trunk/xml/parser/XercesParserImpl.java
===================================================================
--- plugins/XML/trunk/xml/parser/XercesParserImpl.java	2014-03-11 18:39:06 UTC (rev \
                23435)
+++ plugins/XML/trunk/xml/parser/XercesParserImpl.java	2014-03-11 18:43:43 UTC (rev \
23436) @@ -1,22 +1,16 @@
 package xml.parser;
 
 // {{{ imports
+import java.lang.reflect.Constructor;
 import java.net.URISyntaxException;
 import java.io.IOException;
-import java.io.Reader;
-import java.util.Collections;
 import java.util.Map;
 import java.util.HashMap;
 
 import javax.swing.JPanel;
 import javax.swing.tree.DefaultMutableTreeNode;
 
-import org.apache.xerces.impl.XMLErrorReporter;
-import org.apache.xerces.xni.XMLDTDHandler;
-import org.apache.xerces.xni.parser.XMLDTDFilter;
-import org.apache.xerces.xni.parser.XMLDTDSource;
 import org.gjt.sp.jedit.Buffer;
-import org.gjt.sp.jedit.EditPane;
 import org.gjt.sp.jedit.MiscUtilities;
 import org.gjt.sp.jedit.jEdit;
 import org.gjt.sp.jedit.View;
@@ -25,7 +19,6 @@
 import org.xml.sax.SAXException;
 import org.xml.sax.SAXParseException;
 import org.xml.sax.XMLReader;
-import org.xml.sax.helpers.XMLReaderFactory;
 import org.xml.sax.helpers.DefaultHandler;
 
 import sidekick.IAsset;
@@ -33,14 +26,12 @@
 import xml.CharSequenceReader;
 import xml.AntXmlParsedData;
 import xml.XmlParsedData;
-import xml.XmlPlugin;
 import xml.SchemaMappingManager;
 import xml.completion.CompletionInfo;
 import xml.gui.XmlModeToolBar;
 import xml.parser.MyEntityResolver.IOExceptionWithLocation;
 import errorlist.DefaultErrorSource;
 import errorlist.ErrorSource;
-import static xml.Debug.*;
 // }}}
 // {{{ class XercesParserImpl
 /**
@@ -428,8 +419,8 @@
         String dataClassName = jEdit.getProperty("xml.xmlparseddata." + modeName);
         if (dataClassName != null) {
             try {
-                Class dataClass = Class.forName(dataClassName);
-                java.lang.reflect.Constructor con = \
dataClass.getConstructor(String.class, Boolean.TYPE); +                Class<?> \
dataClass = Class.forName(dataClassName); +                Constructor<?> con = \
dataClass.getConstructor(String.class, Boolean.TYPE);  return \
(XmlParsedData)con.newInstance(filename, html);  }
             catch (Exception e) {
@@ -465,6 +456,8 @@
 	//{{{ StoppedException class
 	static class StoppedException extends SAXException
 	{
+		private static final long serialVersionUID = 1L;
+
 		StoppedException()
 		{
 			super("Parsing stopped");

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic