chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1457902 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntry.java
Date Mon, 18 Mar 2013 18:10:46 GMT
Author: fmui
Date: Mon Mar 18 18:10:46 2013
New Revision: 1457902

URL: http://svn.apache.org/r1457902
Log:
Removed empty atom:content tags

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntry.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntry.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntry.java?rev=1457902&r1=1457901&r2=1457902&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntry.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntry.java
Mon Mar 18 18:10:46 2013
@@ -36,7 +36,7 @@ public class AtomEntry extends AtomDocum
 
     private static final String DEFAULT_AUTHOR = "unknown";
 
-    private boolean contentTagAdded;
+    // private boolean contentTagAdded;
 
     /**
      * Creates an Atom entry document.
@@ -68,16 +68,16 @@ public class AtomEntry extends AtomDocum
             writeAllCustomNamespace();
         }
 
-        contentTagAdded = false;
+        // contentTagAdded = false;
     }
 
     /**
      * Closes the entry tag.
      */
     public void endEntry() throws XMLStreamException {
-        if (!contentTagAdded) {
-            writeEmptyContent(); // for Atom spec compliance
-        }
+        // if (!contentTagAdded) {
+        // writeEmptyContent();
+        // }
 
         getWriter().writeEndElement();
     }
@@ -169,7 +169,7 @@ public class AtomEntry extends AtomDocum
 
         xsw.writeEndElement();
 
-        contentTagAdded = true;
+        // contentTagAdded = true;
     }
 
     /**
@@ -180,6 +180,6 @@ public class AtomEntry extends AtomDocum
         xsw.writeStartElement(XMLConstants.PREFIX_ATOM, "content", XMLConstants.NAMESPACE_ATOM);
         xsw.writeEndElement();
 
-        contentTagAdded = true;
+        // contentTagAdded = true;
     }
 }



Mime
View raw message