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-io.git
commit 2486ac990d9e69b89d6016537db54f81dc30f543 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Oct 8 12:12:51 2023 -0400 Enforce current import order through Checkstyle Fix one file's import order --- src/conf/checkstyle.xml | 6 ++++++ src/test/java/org/apache/commons/io/StreamIteratorTest.java | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle.xml index d2fc3923..4ff52333 100644 --- a/src/conf/checkstyle.xml +++ b/src/conf/checkstyle.xml @@ -34,6 +34,12 @@ limitations under the License. <module name="AvoidStarImport" /> <module name="RedundantImport" /> <module name="UnusedImports" /> + <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="NeedBraces" /> <module name="LeftCurly" /> <module name="JavadocMethod" /> diff --git a/src/test/java/org/apache/commons/io/StreamIteratorTest.java b/src/test/java/org/apache/commons/io/StreamIteratorTest.java index 54c496ff..7cfa9afb 100644 --- a/src/test/java/org/apache/commons/io/StreamIteratorTest.java +++ b/src/test/java/org/apache/commons/io/StreamIteratorTest.java @@ -17,15 +17,15 @@ package org.apache.commons.io; -import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Iterator; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Stream; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertTrue; +import org.junit.jupiter.api.Test; /** * Tests {@link StreamIterator}.