chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1134286 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.java
Date Fri, 10 Jun 2011 12:02:50 GMT
Author: fmui
Date: Fri Jun 10 12:02:50 2011
New Revision: 1134286

URL: http://svn.apache.org/viewvc?rev=1134286&view=rev
Log:
CMIS-387: made AtomEntryParser work with other XML parsers

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.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/AtomEntryParser.java?rev=1134286&r1=1134285&r2=1134286&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomEntryParser.java
Fri Jun 10 12:02:50 2011
@@ -172,7 +172,7 @@ public class AtomEntryParser {
         }
 
         XMLInputFactory factory = XMLInputFactory.newInstance();
-        factory.setProperty(XMLInputFactory.IS_COALESCING, "false");
+        factory.setProperty(XMLInputFactory.IS_COALESCING, Boolean.FALSE);
         XMLStreamReader parser = factory.createXMLStreamReader(stream);
 
         while (true) {
@@ -493,7 +493,8 @@ public class AtomEntryParser {
      * Checks if the given prefix is assigned to the given namespace.
      */
     @SuppressWarnings("unchecked")
-    private static void addNamespaceIfMissing(XMLStreamWriter writer, String prefix, String
namespaceUri) throws Exception {
+    private static void addNamespaceIfMissing(XMLStreamWriter writer, String prefix, String
namespaceUri)
+            throws Exception {
         if ((namespaceUri == null) || (namespaceUri.trim().length() == 0)) {
             return;
         }



Mime
View raw message