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

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

commit f727784a0b35adaa4695858b6bb783b8e4174fbf
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Nov 24 10:29:28 2025 -0500

    Bump commons-parent to 93
---
 pom.xml                       | 17 ++++++++
 src/conf/checkstyle-java8.xml | 99 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 116 insertions(+)

diff --git a/pom.xml b/pom.xml
index 42bc166d..c45c77ce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -313,6 +313,23 @@
     </plugins>
   </reporting>
   <profiles>
+    <profile>
+      <id>java8</id>
+      <activation>
+        <jdk>1.8</jdk>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-checkstyle-plugin</artifactId>
+            <configuration>
+              <configLocation>src/conf/checkstyle-java8.xml</configLocation>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
     <profile>
       <id>java16</id>
       <!-- For testing with CGLIB on Java 16 and up. -->
diff --git a/src/conf/checkstyle-java8.xml b/src/conf/checkstyle-java8.xml
new file mode 100644
index 00000000..d7e11366
--- /dev/null
+++ b/src/conf/checkstyle-java8.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+       https://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<!DOCTYPE module PUBLIC
+    "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
+    "https://checkstyle.org/dtds/configuration_1_3.dtd";>
+
+<!--
+  Checkstyle checks configured for Maven.
+-->
+<module name="Checker">
+  <property name="localeLanguage" value="en" />
+  <module name="FileTabCharacter" />
+  <module name="JavadocPackage">
+    <property name="allowLegacy" value="true" />
+  </module>
+  <module name="LineLength">
+    <property name="max" value="160" />
+  </module>
+  <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="RegexpSingleline">
+    <property name="format" value="^\s+\*\s+@author\s" />
+    <property name="message" value="Deprecated @author tag" />
+    <property name="fileExtensions" value="java" />
+    <property name="severity" value="warning" />
+  </module>
+  <module name="RegexpSingleline">
+    <property name="format" value="\s+$" />
+    <property name="message" value="Line has trailing spaces." />
+  </module>
+  <module name="TreeWalker">
+    <module name="ArrayTypeStyle" />
+    <module name="AvoidStarImport" />
+    <module name="CovariantEquals" />
+    <module name="DefaultComesLast" />
+    <module name="EmptyBlock">
+      <property name="option" value="text" />
+    </module>
+    <module name="EqualsHashCode" />
+    <module name="ExplicitInitialization" />
+    <module name="FinalLocalVariable" />
+    <module name="IllegalInstantiation" />
+    <module name="ImportOrder">
+      <property name="option" value="top" />
+      <property name="groups" value="java,javax,org" />
+      <property name="ordered" value="true" />
+      <property name="separated" value="true" />
+    </module>
+    <module name="InterfaceIsType" />
+    <module name="JavadocType" />
+    <module name="JavadocMethod">
+    </module>
+    <module name="JavadocVariable">
+      <property name="scope" value="protected" />
+    </module>
+    <module name="LeftCurly" />
+    <module name="MethodParamPad"/>
+    <module name="MissingOverride" />
+    <module name="ModifierOrder" />
+    <module name="MultipleVariableDeclarations" />
+    <module name="NeedBraces" />
+    <module name="ParenPad" />
+    <module name="RedundantImport" />
+    <module name="RedundantModifier" />
+    <module name="RightCurly" />
+    <module name="SimplifyBooleanExpression" />
+    <module name="SimplifyBooleanReturn" />
+    <module name="StringLiteralEquality" />
+    <module name="SuperClone" /> 
+    <module name="SuperFinalize" />
+    <module name="TypecastParenPad" />
+    <module name="UnnecessaryParentheses" />
+    <module name="UnusedImports" />
+    <module name="UpperEll" />
+    <module name="VisibilityModifier">
+      <property name="packageAllowed" value="true" />
+      <property name="protectedAllowed" value="true" />
+    </module>
+    <module name="WhitespaceAfter" />
+    <module name="WhitespaceAround" />
+  </module>
+</module>

Reply via email to