You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/01/08 12:07:39 UTC

(commons-csv) 07/15: Add Checstyle FallThrough

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-csv.git

commit 085294dd853151bba80f826f1c1d6cec0be92865
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Wed Jan 8 07:00:02 2025 -0500

    Add Checstyle FallThrough
---
 src/conf/checkstyle/checkstyle.xml                   | 1 +
 src/main/java/org/apache/commons/csv/CSVPrinter.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/conf/checkstyle/checkstyle.xml b/src/conf/checkstyle/checkstyle.xml
index e1a5dc01..9a17be83 100644
--- a/src/conf/checkstyle/checkstyle.xml
+++ b/src/conf/checkstyle/checkstyle.xml
@@ -50,6 +50,7 @@ limitations under the License.
     </module>
     <module name="EqualsHashCode" />
     <module name="ExplicitInitialization" />
+    <module name="FallThrough" />
     <module name="FinalLocalVariable" />
     <module name="FinalParameters" />
     <module name="IllegalImport" />
diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java b/src/main/java/org/apache/commons/csv/CSVPrinter.java
index d3ae8438..dce94692 100644
--- a/src/main/java/org/apache/commons/csv/CSVPrinter.java
+++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java
@@ -236,7 +236,7 @@ public final class CSVPrinter implements Flushable, Closeable {
                 if (i + 1 < comment.length() && comment.charAt(i + 1) == LF) {
                     i++;
                 }
-                //$FALL-THROUGH$ break intentionally excluded.
+                // falls-through: break intentionally excluded.
             case LF:
                 println();
                 appendable.append(format.getCommentMarker().charValue()); // N.B. Explicit (un)boxing is intentional