abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r596030 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Date Sun, 18 Nov 2007 01:16:23 GMT
Author: jmsnell
Date: Sat Nov 17 17:16:23 2007
New Revision: 596030

URL: http://svn.apache.org/viewvc?rev=596030&view=rev
Log:
Return the right media type

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

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java?rev=596030&r1=596029&r2=596030&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Sat Nov 17 17:16:23 2007
@@ -831,7 +831,9 @@
   }
 
   public <T extends Base> String getMimeType(T base) {
-    return factoriesMap.getMimeType(base);
+    String type = factoriesMap.getMimeType(base);
+    if (type == null) type = MimeTypeHelper.getMimeType(base);
+    return type;
   }
 
   public String[] listExtensionFactories() {



Mime
View raw message