# HG changeset patch # User Sascha L. Teichmann # Date 1322068659 0 # Node ID ab743e750ac6990e74e406aa65d9d922101e340f # Parent b3eb029e07dddb2d8cd480f54bf47a42f9aa2a62 Changed namespace awareness in XML parsing to use no auto-boxing. Fixed a stranged compilation bug with OpenJDK. artifacts/trunk@3311 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r b3eb029e07dd -r ab743e750ac6 ChangeLog --- a/ChangeLog Mon Nov 21 11:59:28 2011 +0000 +++ b/ChangeLog Wed Nov 23 17:17:39 2011 +0000 @@ -1,3 +1,10 @@ +2011-11-21 Ingo Weinzierl + + * artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java: + Changed Ingo's last commit to a more conservative notation (no auto-boxing). + Strangely the flys-client does not compile for me with the auto-boxed + syntax with OpenJDK! + 2011-11-21 Ingo Weinzierl * artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java: diff -r b3eb029e07dd -r ab743e750ac6 artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java --- a/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java Mon Nov 21 11:59:28 2011 +0000 +++ b/artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java Wed Nov 23 17:17:39 2011 +0000 @@ -211,14 +211,17 @@ public static final Document parseDocument(InputStream inputStream) { - return parseDocument(inputStream, true); + return parseDocument(inputStream, Boolean.TRUE); } - public static final Document parseDocument(InputStream inputStream, Boolean namespaceAware) { + public static final Document parseDocument( + InputStream inputStream, + Boolean namespaceAware + ) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); if (namespaceAware != null) { - factory.setNamespaceAware(namespaceAware); + factory.setNamespaceAware(namespaceAware.booleanValue()); } try {