Author: j16sdiz
Date: 2008-12-19 15:29:44 +0000 (Fri, 19 Dec 2008)
New Revision: 24612

Modified:
   trunk/plugins/XMLLibrarian/XMLLibrarian.java
Log:
one less global variable

Modified: trunk/plugins/XMLLibrarian/XMLLibrarian.java
===================================================================
--- trunk/plugins/XMLLibrarian/XMLLibrarian.java        2008-12-19 15:29:27 UTC 
(rev 24611)
+++ trunk/plugins/XMLLibrarian/XMLLibrarian.java        2008-12-19 15:29:44 UTC 
(rev 24612)
@@ -14,7 +14,6 @@
 import java.util.Iterator;
 import java.util.LinkedHashSet;
 import java.util.List;
-import java.util.Set;
 import java.util.Vector;
 
 import javax.xml.parsers.DocumentBuilder;
@@ -731,7 +730,7 @@
                try {
                        SAXParser saxParser = factory.newSAXParser();
                        InputStream is = res.asBucket().getInputStream();
-                       saxParser.parse(is, new LibrarianHandler(new 
Vector<URIWrapper>()) );
+                       saxParser.parse(is, new LibrarianHandler(new 
Vector<URIWrapper>()));
                        is.close();
                } catch (Throwable err) {
                        err.printStackTrace ();}
@@ -770,7 +769,7 @@
                        try {
                                SAXParser saxParser = factory.newSAXParser();
                                InputStream is = 
res.asBucket().getInputStream();
-                               saxParser.parse(is, new 
LibrarianHandler(fileuris) );
+                               saxParser.parse(is, new 
LibrarianHandler(fileuris));
                                is.close();
                        } catch (Throwable err) {
                                err.printStackTrace ();
@@ -809,7 +808,8 @@
                // now we need to adapt this to read subindexing 
                private boolean found_match ;
                private List<URIWrapper> fileuris;
-               public LibrarianHandler(List<URIWrapper> fileuris) throws 
Exception{
+
+               public LibrarianHandler(List<URIWrapper> fileuris) throws 
Exception {
                        this.fileuris = fileuris;
                }
                public void setDocumentLocator(Locator value) {

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to