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


The following commit(s) were added to refs/heads/master by this push:
     new 04bd273f8 Add Checkstyele NewlineAtEndOfFile
04bd273f8 is described below

commit 04bd273f87a1287074d8d2b21593b3d58914e3e6
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jan 21 16:58:04 2026 -0500

    Add Checkstyele NewlineAtEndOfFile
---
 src/site/resources/checkstyle/checkstyle.xml                          | 4 ++++
 .../java/org/apache/commons/lang3/StringUtilsGetDigitsBenchmark.java  | 2 +-
 src/test/java/org/apache/commons/lang3/StringUtilsJoinBenchmark.java  | 2 +-
 .../builder/ReflectionToStringBuilderCustomImplementationTest.java    | 2 +-
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/site/resources/checkstyle/checkstyle.xml 
b/src/site/resources/checkstyle/checkstyle.xml
index 88338f2a0..3f5077788 100644
--- a/src/site/resources/checkstyle/checkstyle.xml
+++ b/src/site/resources/checkstyle/checkstyle.xml
@@ -21,6 +21,10 @@ limitations under the License.
 <!-- Apache Commons Lang customization of default Checkstyle behavior -->
 <module name="Checker">
   <property name="localeLanguage" value="en"/>
+  <module name="NewlineAtEndOfFile">
+    <!-- Files are saved in the repository with LF line endings; on Windows, 
use git config core.autocrlf input -->
+    <property name="lineSeparator" value="lf" />
+  </module>
   <module name="FileTabCharacter">
     <property name="fileExtensions" value="java,xml"/>
   </module>
diff --git 
a/src/test/java/org/apache/commons/lang3/StringUtilsGetDigitsBenchmark.java 
b/src/test/java/org/apache/commons/lang3/StringUtilsGetDigitsBenchmark.java
index 7410c6ce1..7cf0ae441 100644
--- a/src/test/java/org/apache/commons/lang3/StringUtilsGetDigitsBenchmark.java
+++ b/src/test/java/org/apache/commons/lang3/StringUtilsGetDigitsBenchmark.java
@@ -89,4 +89,4 @@ public String testGetDigitsManually() {
     public String testGetDigitsWithBuilder() {
         return getDigitsWithBuilder(testStr);
     }
-}
\ No newline at end of file
+}
diff --git 
a/src/test/java/org/apache/commons/lang3/StringUtilsJoinBenchmark.java 
b/src/test/java/org/apache/commons/lang3/StringUtilsJoinBenchmark.java
index 0cce201b4..91996f5c1 100644
--- a/src/test/java/org/apache/commons/lang3/StringUtilsJoinBenchmark.java
+++ b/src/test/java/org/apache/commons/lang3/StringUtilsJoinBenchmark.java
@@ -642,4 +642,4 @@ public static String join(final short[] array, final char 
delimiter, final int s
     private static Random newRandom() {
         return new Random(235);
     }
-}
\ No newline at end of file
+}
diff --git 
a/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderCustomImplementationTest.java
 
b/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderCustomImplementationTest.java
index 4bddf0223..e8a2d5302 100644
--- 
a/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderCustomImplementationTest.java
+++ 
b/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderCustomImplementationTest.java
@@ -52,4 +52,4 @@ void testBuild() {
                 new CustomReflectionToStringBuilder(this, 
ToStringStyle.NO_CLASS_NAME_STYLE).build());
     }
 
-}
\ No newline at end of file
+}

Reply via email to