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-collections.git
The following commit(s) were added to refs/heads/master by this push: new 12047a30e Sort imports and enforce through Checkstyle 12047a30e is described below commit 12047a30ed016b8f0e17d53df5f1760a422bc04f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Oct 9 08:15:40 2023 -0400 Sort imports and enforce through Checkstyle --- src/conf/checkstyle.xml | 6 ++++++ .../java/org/apache/commons/collections4/GuavaTestlibTest.java | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle.xml index a0a79964f..e0edda7eb 100644 --- a/src/conf/checkstyle.xml +++ b/src/conf/checkstyle.xml @@ -63,5 +63,11 @@ limitations under the License. <!-- Indentation style recommended by Oracle --> <property name="caseIndent" value="0"/> </module> + <module name="ImportOrder"> + <property name="option" value="top"/> + <property name="groups" value="java,javax,junit,org,com"/> + <property name="ordered" value="true"/> + <property name="separated" value="true"/> + </module> </module> </module> diff --git a/src/test/java/org/apache/commons/collections4/GuavaTestlibTest.java b/src/test/java/org/apache/commons/collections4/GuavaTestlibTest.java index 1ea3705f9..3106b7fbe 100644 --- a/src/test/java/org/apache/commons/collections4/GuavaTestlibTest.java +++ b/src/test/java/org/apache/commons/collections4/GuavaTestlibTest.java @@ -22,6 +22,10 @@ import java.util.List; import java.util.Map; import java.util.function.Supplier; +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + import org.apache.commons.collections4.list.TreeList; import org.apache.commons.collections4.map.HashedMap; import org.apache.commons.collections4.map.LRUMap; @@ -38,10 +42,6 @@ import com.google.common.collect.testing.features.Feature; import com.google.common.collect.testing.features.ListFeature; import com.google.common.collect.testing.features.MapFeature; -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - /** * This test uses Google's Guava Testlib testing libraries to validate the * contract of collection classes in Commons Collections. This was introduced