cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [09/33] cxf git commit: [CXF-6959] Workaround for bug when loading XmlSchema instance
Date Mon, 11 Jul 2016 00:14:14 GMT
[CXF-6959] Workaround for bug when loading XmlSchema instance


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b20f1020
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b20f1020
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b20f1020

Branch: refs/heads/master-jaxrs-2.1
Commit: b20f10205e54558d03e9afdb69289a14c1d9f505
Parents: 3a422b3
Author: Christian Schneider <chris@die-schneider.net>
Authored: Tue Jul 5 14:51:28 2016 +0200
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Tue Jul 5 14:51:28 2016 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b20f1020/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
----------------------------------------------------------------------
diff --git a/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
b/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
index 91d88d7..d7f69e6 100644
--- a/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
+++ b/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
@@ -124,7 +124,12 @@ public class XMLTypeCreator extends AbstractTypeCreator {
                 Schema aegisSchema = schemaFactory.newSchema(new StreamSource(is));
                 AEGIS_DOCUMENT_BUILDER_FACTORY.setSchema(aegisSchema);
             } catch (Throwable e) {
-                LOG.log(Level.INFO, "Could not set aegis schema.  Not validating.", e);
+                String msg = "Could not set aegis schema.  Not validating.";
+                if (LOG.isLoggable(Level.FINE)) {
+                    LOG.log(Level.INFO, msg, e);
+                } else {
+                    LOG.log(Level.INFO, msg);
+                }
             } finally {
                 try {
                     is.close();


Mime
View raw message