commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ki...@apache.org
Subject svn commit: r1812710 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/MethodGen.java
Date Fri, 20 Oct 2017 06:24:15 GMT
Author: kinow
Date: Fri Oct 20 06:24:15 2017
New Revision: 1812710

URL: http://svn.apache.org/viewvc?rev=1812710&view=rev
Log:
Fix incorrect indentation, thanks to Michael Ernst. This closes #18

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

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/MethodGen.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/MethodGen.java?rev=1812710&r1=1812709&r2=1812710&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/MethodGen.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/generic/MethodGen.java Fri Oct
20 06:24:15 2017
@@ -617,13 +617,13 @@ public class MethodGen extends FieldGenO
      */
       public void addParameterAnnotationsAsAttribute(final ConstantPoolGen cp) {
           if (!hasParameterAnnotations) {
-            return;
-        }
-          final Attribute[] attrs = AnnotationEntryGen.getParameterAnnotationAttributes(cp,param_annotations);
-          if (attrs!=null) {
-          for (final Attribute attr : attrs) {
-              addAttribute(attr);
+              return;
           }
+          final Attribute[] attrs = AnnotationEntryGen.getParameterAnnotationAttributes(cp,param_annotations);
+          if (attrs != null) {
+              for (final Attribute attr : attrs) {
+                  addAttribute(attr);
+              }
           }
       }
 



Mime
View raw message