abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r437746 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/util/ parser/src/main/java/org/apache/abdera/parser/stax/
Date Mon, 28 Aug 2006 16:32:26 GMT
Author: jmsnell
Date: Mon Aug 28 09:32:25 2006
New Revision: 437746

URL: http://svn.apache.org/viewvc?rev=437746&view=rev
Log:
NamedParser and NamedWriter names should not be case sensitive

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaConfiguration.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParserFactory.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMWriterFactory.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaConfiguration.java?rev=437746&r1=437745&r2=437746&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaConfiguration.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbderaConfiguration.java
Mon Aug 28 09:32:25 2006
@@ -136,7 +136,7 @@
           "META-INF/services/org.apache.abdera.writer.NamedWriter");
       writers = new HashMap<String,NamedWriter>();
       for (NamedWriter writer : _writers) {
-        writers.put(writer.getName(), writer);
+        writers.put(writer.getName().toLowerCase(), writer);
       }
     }
     return writers;
@@ -154,7 +154,7 @@
           "META-INF/services/org.apache.abdera.parser.NamedParser");
       parsers = new HashMap<String,NamedParser>();
       for (NamedParser parser : _parsers) {
-        parsers.put(parser.getName(), parser);
+        parsers.put(parser.getName().toLowerCase(), parser);
       }
     }
     return parsers;

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParserFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParserFactory.java?rev=437746&r1=437745&r2=437746&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParserFactory.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMParserFactory.java
Mon Aug 28 09:32:25 2006
@@ -47,7 +47,7 @@
 
   public Parser getParser(String name) {
     return (name != null) ? 
-      loadParsers().get(name) : getParser();
+      loadParsers().get(name.toLowerCase()) : getParser();
   }
 
   private Map<String,NamedParser> loadParsers() {

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMWriterFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMWriterFactory.java?rev=437746&r1=437745&r2=437746&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMWriterFactory.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMWriterFactory.java
Mon Aug 28 09:32:25 2006
@@ -47,7 +47,7 @@
 
   public Writer getWriter(String name) {
     return (name != null) ? 
-      loadWriters().get(name) : getWriter();
+      loadWriters().get(name.toLowerCase()) : getWriter();
   }
 
   private Map<String,NamedWriter> loadWriters() {



Mime
View raw message