abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r580494 - /incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
Date Fri, 28 Sep 2007 21:54:39 GMT
Author: jmsnell
Date: Fri Sep 28 14:54:39 2007
New Revision: 580494

URL: http://svn.apache.org/viewvc?rev=580494&view=rev
Log:
another minor tweak to the json output

Modified:
    incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java

Modified: incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java?rev=580494&r1=580493&r2=580494&view=diff
==============================================================================
--- incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
(original)
+++ incubator/abdera/java/trunk/extensions/json/src/main/java/org/apache/abdera/ext/json/JSONUtil.java
Fri Sep 28 14:54:39 2007
@@ -48,7 +48,6 @@
 import org.apache.abdera.model.Text;
 import org.apache.abdera.model.TextValue;
 import org.apache.abdera.model.Workspace;
-import org.apache.abdera.util.Constants;
 import org.apache.abdera.xpath.XPath;
 
 @SuppressWarnings("unchecked")
@@ -256,7 +255,7 @@
     jstream.writeSeparator();
     List<QName> attributes = child.getAttributes();
     jstream.startObject();
-    if (!Constants.XHTML_NS.equals(uri) && !isSameNamespace(childqname, parentqname))
{
+    if (!isSameNamespace(childqname, parentqname)) {
       if (prefix != null && !"".equals(prefix))
         jstream.writeField("xmlns:" + prefix);
       else 



Mime
View raw message