abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r422084 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
Date Fri, 14 Jul 2006 22:47:42 GMT
Author: rooneg
Date: Fri Jul 14 15:47:42 2006
New Revision: 422084

URL: http://svn.apache.org/viewvc?rev=422084&view=rev
Log:
Clean up a private method in FOMParser.

* parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
  (FOMParser.getDocument): Drop options argument, it's not used.
  (FOMParser.parse): Update call to getDocument.

Modified:
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java?rev=422084&r1=422083&r2=422084&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParser.java
Fri Jul 14 15:47:42 2006
@@ -52,8 +52,7 @@
   
   private <T extends Element>Document<T> getDocument(
     FOMBuilder builder, 
-    URI base, 
-    ParserOptions options) {
+    URI base) {
       Document<T> document = builder.getFomDocument();
       try {
         document.setBaseUri(base.toString());
@@ -116,7 +115,7 @@
       XMLStreamReader xmlreader = 
         XMLInputFactory.newInstance().createXMLStreamReader(in);
       FOMBuilder builder = new FOMBuilder(factory, xmlreader, options);
-      document = getDocument(builder, base, options);
+      document = getDocument(builder, base);
       setCharset(options, xmlreader.getCharacterEncodingScheme(), document);
     } catch (Exception e) {
       if (!(e instanceof ParseException))



Mime
View raw message