This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git

commit 406cd9cc4e8dab1a731252c4fc9240a245989788
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Dec 29 10:59:53 2024 -0500

    Use the default Checkstyle reliefPattern
---
 src/conf/checkstyle/checkstyle.xml                  | 4 +---
 src/main/java/org/apache/bcel/util/BCELFactory.java | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/conf/checkstyle/checkstyle.xml 
b/src/conf/checkstyle/checkstyle.xml
index d7878da2..237ae31f 100644
--- a/src/conf/checkstyle/checkstyle.xml
+++ b/src/conf/checkstyle/checkstyle.xml
@@ -56,9 +56,7 @@ limitations under the License.
     </module>
     <module name="EqualsHashCode" />
     <module name="ExplicitInitialization" />
-    <module name="FallThrough">
-      <property name="reliefPattern" value="FALL-THROUGH" />
-    </module>
+    <module name="FallThrough" />
     <module name="FinalLocalVariable" />
     <module name="IllegalImport" />
     <module name="IllegalInstantiation" />
diff --git a/src/main/java/org/apache/bcel/util/BCELFactory.java 
b/src/main/java/org/apache/bcel/util/BCELFactory.java
index c9284dc8..2ce51589 100644
--- a/src/main/java/org/apache/bcel/util/BCELFactory.java
+++ b/src/main/java/org/apache/bcel/util/BCELFactory.java
@@ -188,12 +188,12 @@ final class BCELFactory extends EmptyVisitor {
             break;
         case Const.MULTIANEWARRAY:
             dim = ((MULTIANEWARRAY) i).getDimensions();
-            // FALL-THROUGH
+            // falls-through
         case Const.NEWARRAY:
             if (type instanceof ArrayType) {
                 type = ((ArrayType) type).getBasicType();
             }
-            // FALL-THROUGH
+            // falls-through
         case Const.ANEWARRAY:
             printWriter.println("il.append(_factory.createNewArray(" + 
BCELifier.printType(type) + ", (short) " + dim + "));");
             break;

Reply via email to