You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2011/06/10 14:02:50 UTC
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
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;
}