cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Fixing a 2.7.x compilation error
Date Thu, 28 Aug 2014 09:29:11 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 82fca420d -> 34adffdea


Fixing a 2.7.x compilation error


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

Branch: refs/heads/2.7.x-fixes
Commit: 34adffdea2895c02d5863056d1d86a0b1dd6765e
Parents: 82fca42
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Aug 28 10:28:48 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Aug 28 10:28:48 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/34adffde/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
----------------------------------------------------------------------
diff --git a/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
b/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
index 2026f37..7ecbdfa 100644
--- a/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
+++ b/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
@@ -1458,7 +1458,7 @@ public class SourceGenerator {
         Element wadlElement = readXmlDocument(new StringReader(wadl));
         try {
             if (validateWadl) {
-                SchemaFactory factory = SchemaFactory.newInstance(Constants.URI_2001_SCHEMA_XSD);
+                SchemaFactory factory = SchemaFactory.newInstance(XmlSchemaConstants.XSD_NAMESPACE_URI);
                 URL schemaURL = ResourceUtils.getResourceURL("classpath:/schemas/wadl/wadl.xsd",
bus);
                 Reader r = new BufferedReader(new InputStreamReader(schemaURL.openStream(),
"UTF-8"));
                 StreamSource source = new StreamSource(r);


Mime
View raw message