diff --git a/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java b/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java index 30fabf116..5752f6b2d 100644 --- a/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java @@ -20,7 +20,6 @@ package org.apache.commons.lang3.builder; import java.lang.reflect.AccessibleObject; import java.lang.reflect.Field; import java.lang.reflect.Modifier; - import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; diff --git a/src/main/java/org/apache/commons/lang3/event/EventUtils.java b/src/main/java/org/apache/commons/lang3/event/EventUtils.java index 0499e06bb..2e11e578c 100644 --- a/src/main/java/org/apache/commons/lang3/event/EventUtils.java +++ b/src/main/java/org/apache/commons/lang3/event/EventUtils.java @@ -17,8 +17,6 @@ package org.apache.commons.lang3.event; -import org.apache.commons.lang3.reflect.MethodUtils; - import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -27,6 +25,8 @@ import java.util.Arrays; import java.util.HashSet; import java.util.Set; +import org.apache.commons.lang3.reflect.MethodUtils; + /** * Provides some useful event-based utility methods. * diff --git a/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java b/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java index d3429c429..c8963d600 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/CharSequenceTranslator.java @@ -17,8 +17,8 @@ package org.apache.commons.lang3.text.translate; import java.io.IOException; -import java.io.Writer; import java.io.StringWriter; +import java.io.Writer; import java.util.Locale; /** diff --git a/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java b/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java index f3316f00e..42f0040ec 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java @@ -18,9 +18,8 @@ package org.apache.commons.lang3.text.translate; import java.io.IOException; import java.io.Writer; - -import java.util.EnumSet; import java.util.Arrays; +import java.util.EnumSet; /** * Translates escaped unicode values of the form \\u+\d\d\d\d back to diff --git a/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java b/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java index f4a6b33fe..9ce511914 100644 --- a/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java @@ -18,8 +18,13 @@ package org.apache.commons.lang3; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; -import static org.apache.commons.lang3.AnnotationUtilsTest.Stooge.*; -import static org.junit.Assert.*; +import static org.apache.commons.lang3.AnnotationUtilsTest.Stooge.CURLY; +import static org.apache.commons.lang3.AnnotationUtilsTest.Stooge.LARRY; +import static org.apache.commons.lang3.AnnotationUtilsTest.Stooge.MOE; +import static org.apache.commons.lang3.AnnotationUtilsTest.Stooge.SHEMP; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java b/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java index e711470ff..eae6bfa22 100644 --- a/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java @@ -16,8 +16,6 @@ */ package org.apache.commons.lang3; -import java.nio.CharBuffer; - import junit.framework.Assert; import junit.framework.TestCase; diff --git a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java index fa60a0763..97f00daed 100644 --- a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java @@ -22,11 +22,11 @@ import java.util.Arrays; import java.util.Calendar; import java.util.Date; +import junit.framework.TestCase; + import org.apache.commons.lang3.exception.CloneFailedException; import org.apache.commons.lang3.mutable.MutableObject; -import junit.framework.TestCase; - /** * Unit tests {@link org.apache.commons.lang3.ObjectUtils}. * diff --git a/src/test/java/org/apache/commons/lang3/PairTest.java b/src/test/java/org/apache/commons/lang3/PairTest.java index fff199eee..949dedee8 100644 --- a/src/test/java/org/apache/commons/lang3/PairTest.java +++ b/src/test/java/org/apache/commons/lang3/PairTest.java @@ -16,7 +16,9 @@ */ package org.apache.commons.lang3; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNull; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; diff --git a/src/test/java/org/apache/commons/lang3/builder/ShortPrefixToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/ShortPrefixToStringStyleTest.java index 430681d8a..8759f4aab 100644 --- a/src/test/java/org/apache/commons/lang3/builder/ShortPrefixToStringStyleTest.java +++ b/src/test/java/org/apache/commons/lang3/builder/ShortPrefixToStringStyleTest.java @@ -19,10 +19,10 @@ package org.apache.commons.lang3.builder; import java.util.ArrayList; import java.util.HashMap; -import org.apache.commons.lang3.builder.ToStringStyleTest.Person; - import junit.framework.TestCase; +import org.apache.commons.lang3.builder.ToStringStyleTest.Person; + /** * Unit tests {@link org.apache.commons.lang3.builder.ToStringStyle#SHORT_PREFIX_STYLE}. * diff --git a/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java b/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java index 085278222..3f6577144 100644 --- a/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java +++ b/src/test/java/org/apache/commons/lang3/concurrent/TimedSemaphoreTest.java @@ -28,7 +28,6 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.TimeUnit; -import org.apache.commons.lang3.concurrent.TimedSemaphore; import org.easymock.EasyMock; import org.junit.Test; diff --git a/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java b/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java index a069bf3b6..22316651b 100644 --- a/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java +++ b/src/test/java/org/apache/commons/lang3/event/EventListenerSupportTest.java @@ -17,8 +17,6 @@ package org.apache.commons.lang3.event; -import junit.framework.TestCase; - import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.ByteArrayInputStream; @@ -30,6 +28,8 @@ import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; +import junit.framework.TestCase; + import org.easymock.EasyMock; /** diff --git a/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java b/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java index e8add973f..e28b93cd9 100644 --- a/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/event/EventUtilsTest.java @@ -16,8 +16,6 @@ */ package org.apache.commons.lang3.event; -import junit.framework.TestCase; - import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.PropertyChangeEvent; @@ -29,6 +27,8 @@ import java.lang.reflect.Proxy; import java.util.Map; import java.util.TreeMap; +import junit.framework.TestCase; + /** * @since 3.0 * @version $Id$ diff --git a/src/test/java/org/apache/commons/lang3/exception/DefaultExceptionContextTest.java b/src/test/java/org/apache/commons/lang3/exception/DefaultExceptionContextTest.java index 61c04d384..11180a41a 100644 --- a/src/test/java/org/apache/commons/lang3/exception/DefaultExceptionContextTest.java +++ b/src/test/java/org/apache/commons/lang3/exception/DefaultExceptionContextTest.java @@ -18,10 +18,10 @@ package org.apache.commons.lang3.exception; import java.util.Date; -import org.apache.commons.lang3.exception.ContextedExceptionTest.ObjectWithFaultyToString; - import junit.framework.TestCase; +import org.apache.commons.lang3.exception.ContextedExceptionTest.ObjectWithFaultyToString; + /** * JUnit tests for DefaultExceptionContext. * @author D. Ashmore diff --git a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java index 342defc09..a376b1582 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java @@ -16,29 +16,26 @@ */ package org.apache.commons.lang3.reflect; -import java.lang.reflect.TypeVariable; -import java.util.List; - -import org.junit.Test; - import java.io.Serializable; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; +import java.lang.reflect.TypeVariable; import java.net.URI; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.TreeSet; -import org.junit.Assert; - import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.reflect.testbed.Foo; import org.apache.commons.lang3.reflect.testbed.GenericParent; import org.apache.commons.lang3.reflect.testbed.GenericTypeHolder; import org.apache.commons.lang3.reflect.testbed.StringParameterizedChild; +import org.junit.Assert; +import org.junit.Test; /** * Test TypeUtils diff --git a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java index 59f3d3f4d..8442b15fc 100644 --- a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java @@ -19,10 +19,10 @@ package org.apache.commons.lang3.text; import java.lang.reflect.Constructor; import java.lang.reflect.Modifier; -import org.apache.commons.lang3.StringUtils; - import junit.framework.TestCase; +import org.apache.commons.lang3.StringUtils; + /** * Unit tests for WordUtils class. * diff --git a/src/test/java/org/apache/commons/lang3/text/translate/LookupTranslatorTest.java b/src/test/java/org/apache/commons/lang3/text/translate/LookupTranslatorTest.java index ca918d592..4d08a520c 100644 --- a/src/test/java/org/apache/commons/lang3/text/translate/LookupTranslatorTest.java +++ b/src/test/java/org/apache/commons/lang3/text/translate/LookupTranslatorTest.java @@ -17,10 +17,10 @@ package org.apache.commons.lang3.text.translate; -import junit.framework.TestCase; - -import java.io.StringWriter; import java.io.IOException; +import java.io.StringWriter; + +import junit.framework.TestCase; /** * Unit tests for {@link org.apache.commons.lang3.text.translate.LookupTranslator}.