cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf-xjc-utils git commit: [CXFXJC-12] - Fix for Enabling XJC DV plugin creates invalid content incorrect
Date Mon, 31 Aug 2015 14:25:36 GMT
Repository: cxf-xjc-utils
Updated Branches:
  refs/heads/master 2ee4c8dd4 -> 15fec5f06


[CXFXJC-12] - Fix for Enabling XJC DV plugin creates invalid content incorrect


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

Branch: refs/heads/master
Commit: 15fec5f06e8c85188edd194d831e2df3b0e6236c
Parents: 2ee4c8d
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Aug 31 15:24:54 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Aug 31 15:24:54 2015 +0100

----------------------------------------------------------------------
 dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/blob/15fec5f0/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
----------------------------------------------------------------------
diff --git a/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java b/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
index fdd6e2e..077bcd8 100644
--- a/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
+++ b/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
@@ -89,7 +89,7 @@ public class DefaultValuePlugin {
         
         if (args[index].startsWith("-Xdv")) {
             ret = 1;                    
-            if (args[index].equals("-Xts:optional")) {
+            if (args[index].equals("-Xdv:optional")) {
                 complexTypes = true;
             }
             if (!opt.activePlugins.contains(plugin)) {
@@ -177,7 +177,6 @@ public class DefaultValuePlugin {
                     isRequiredAttr = attributeUse.isRequired();
                 }
 
-                
                 if (xsType != null 
                     && xsType.isComplexType()
                     && ((containsDefaultValue(outline, f) && complexTypes)


Mime
View raw message