abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1238777 - /abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/axiom/FOMParser.java
Date Tue, 31 Jan 2012 20:03:13 GMT
Author: jmsnell
Date: Tue Jan 31 20:03:12 2012
New Revision: 1238777

URL: http://svn.apache.org/viewvc?rev=1238777&view=rev
Log:
bug fix...

Modified:
    abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/axiom/FOMParser.java

Modified: abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/axiom/FOMParser.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/axiom/FOMParser.java?rev=1238777&r1=1238776&r2=1238777&view=diff
==============================================================================
--- abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/axiom/FOMParser.java (original)
+++ abdera/abdera2/core/src/main/java/org/apache/abdera2/parser/axiom/FOMParser.java Tue Jan
31 20:03:12 2012
@@ -44,6 +44,8 @@ import org.apache.axiom.om.util.StAXPars
 import org.apache.axiom.om.util.StAXUtils;
 import org.apache.axiom.util.stax.dialect.StAXDialect;
 
+import com.google.common.collect.Iterables;
+
 @Name("default")
 public class FOMParser extends AbstractParser implements Parser {
     private static final StAXParserConfiguration ABDERA_PARSER_CONFIGURATION = new StAXParserConfiguration()
{
@@ -102,7 +104,7 @@ public class FOMParser extends AbstractP
         try {
             if (options == null)
               options = getDefaultParserOptions();
-            if (options.getCompressionCodecs() != null)
+            if (!Iterables.isEmpty(options.getCompressionCodecs()))
               in = Compression.wrap(in, options.getCompressionCodecs());
             String charset = options.getCharset();
             if (charset == null && options.getAutodetectCharset()) {



Mime
View raw message