cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1133400 - /cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
Date Wed, 08 Jun 2011 13:48:06 GMT
Author: ffang
Date: Wed Jun  8 13:48:06 2011
New Revision: 1133400

URL: http://svn.apache.org/viewvc?rev=1133400&view=rev
Log:
[CXF-3566]not put serialVersionUID in generated faults by default

Modified:
    cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java?rev=1133400&r1=1133399&r2=1133400&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
Wed Jun  8 13:48:06 2011
@@ -85,9 +85,11 @@ public class FaultGenerator extends Abst
                     Object faultSerialVersionUID 
                         = penv.get(ToolConstants.CFG_FAULT_SERIAL_VERSION_UID);
                     setAttributes("faultSerialVersionUID", faultSerialVersionUID);
-                    if (faultSerialVersionUID.equals(FaultSerialVersionUID.FQCN)) {
+                    if (faultSerialVersionUID.equals(FaultSerialVersionUID.FQCN) 
+                        || "FQCN".equals(faultSerialVersionUID)) {
                         setAttributes("suid", generateHashSUID(expClz.getFullClassName()));
-                    } else if (faultSerialVersionUID.equals(FaultSerialVersionUID.TIMESTAMP))
{
+                    } else if (faultSerialVersionUID.equals(FaultSerialVersionUID.TIMESTAMP)
+                        || "TIMESTAMP".equals(faultSerialVersionUID)) {
                         setAttributes("suid", generateTimestampSUID());
                     }
                 }



Mime
View raw message