cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1409659 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/Utils.java
Date Thu, 15 Nov 2012 06:21:23 GMT
Author: ffang
Date: Thu Nov 15 06:21:22 2012
New Revision: 1409659

URL: http://svn.apache.org/viewvc?rev=1409659&view=rev
Log:
[CXF-4594]refactor org.apache.cxf.jaxb.Utils a little bit to make it more clear

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/Utils.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/Utils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/Utils.java?rev=1409659&r1=1409658&r2=1409659&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/Utils.java (original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/Utils.java Thu Nov 15
06:21:22 2012
@@ -170,10 +170,10 @@ final class Utils {
                 String setterName = "set" + m.getName().substring(index);
                 Class<?> paramTypes = m.getReturnType();
                 Method setter = getDeclaredMethod(declaringClass, setterName, paramTypes);
-                if (setter == null) {
-                    return true;
-                }
-                if (setter != null && !setter.isAnnotationPresent(XmlTransient.class))
{
+                
+                if (setter != null && setter.isAnnotationPresent(XmlTransient.class))
{
+                    return false;
+                } else {
                     return true;
                 }
             }



Mime
View raw message