commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1695793 - /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java
Date Thu, 13 Aug 2015 22:19:54 GMT
Author: ggregory
Date: Thu Aug 13 22:19:54 2015
New Revision: 1695793

URL: http://svn.apache.org/r1695793
Log:
Statement unnecessarily nested within else clause.

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java?rev=1695793&r1=1695792&r2=1695793&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/FieldOrMethod.java
Thu Aug 13 22:19:54 2015
@@ -110,10 +110,9 @@ public abstract class FieldOrMethod exte
                 org.apache.commons.bcel6.Constants.CONSTANT_Class);
         if (className.startsWith("[")) {
             return (ArrayType) Type.getType(className);
-        } else {
-            className = className.replace('/', '.');
-            return ObjectType.getInstance(className);
         }
+        className = className.replace('/', '.');
+        return ObjectType.getInstance(className);
     }
 
 



Mime
View raw message