commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1241157 - /commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/type/MoreTypes.java
Date Mon, 06 Feb 2012 20:29:13 GMT
Author: simonetripodi
Date: Mon Feb  6 20:29:13 2012
New Revision: 1241157

URL: http://svn.apache.org/viewvc?rev=1241157&view=rev
Log:
removed useless else branch

Modified:
    commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/type/MoreTypes.java

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/type/MoreTypes.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/type/MoreTypes.java?rev=1241157&r1=1241156&r2=1241157&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/type/MoreTypes.java
(original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/type/MoreTypes.java
Mon Feb  6 20:29:13 2012
@@ -98,22 +98,16 @@ final class MoreTypes
         if ( type instanceof Class )
         {
             return true;
-
         }
         else if ( type instanceof CompositeType )
         {
             return ( (CompositeType) type ).isFullySpecified();
-
         }
         else if ( type instanceof TypeVariable )
         {
             return false;
-
-        }
-        else
-        {
-            return ( (CompositeType) canonicalize( type ) ).isFullySpecified();
         }
+        return ( (CompositeType) canonicalize( type ) ).isFullySpecified();
     }
 
     /**



Mime
View raw message