Author: jcarman
Date: Sat Jul 27 02:08:16 2013
New Revision: 1507558

URL: http://svn.apache.org/r1507558
Log:
Collapsing nested ifs.

Modified:
    
commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationFactory.java

Modified: 
commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationFactory.java
URL: 
http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationFactory.java?rev=1507558&r1=1507557&r2=1507558&view=diff
==============================================================================
--- 
commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationFactory.java
 (original)
+++ 
commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationFactory.java
 Sat Jul 27 02:08:16 2013
@@ -194,10 +194,8 @@ public class AnnotationFactory {
 
         public Object invoke(Object proxy, Method method, Object[] arguments) 
throws Throwable {
             Object result = method.getDefaultValue();
-            if (result == null) {
-                if (method.getReturnType().isPrimitive()) {
-                    return ProxyUtils.nullValue(method.getReturnType());
-                }
+            if (result == null && method.getReturnType().isPrimitive()) {
+                return ProxyUtils.nullValue(method.getReturnType());
             }
             return result;
         }


Reply via email to