1
0

Organize imports

This commit is contained in:
Gary Gregory
2023-10-18 17:05:12 -04:00
parent 0b4d31d127
commit 174f40d168
13 changed files with 29 additions and 25 deletions

View File

@@ -17,11 +17,9 @@
package org.apache.commons.logging; package org.apache.commons.logging;
import java.io.BufferedReader;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream; import java.io.PrintStream;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.net.URL; import java.net.URL;

View File

@@ -17,13 +17,13 @@
package org.apache.commons.logging.impl; package org.apache.commons.logging.impl;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.LogRecord;
import java.util.StringTokenizer;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.io.Serializable;
import java.io.StringWriter; import java.io.StringWriter;
import java.util.StringTokenizer;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;

View File

@@ -18,10 +18,11 @@
package org.apache.commons.logging.impl; package org.apache.commons.logging.impl;
import java.io.Serializable; import java.io.Serializable;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.log4j.Level;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.apache.log4j.Priority; import org.apache.log4j.Priority;
import org.apache.log4j.Level;
/** /**
* Implementation of {@link Log} that maps directly to a * Implementation of {@link Log} that maps directly to a

View File

@@ -18,9 +18,10 @@
package org.apache.commons.logging.impl; package org.apache.commons.logging.impl;
import java.io.Serializable; import java.io.Serializable;
import org.apache.log.Logger;
import org.apache.log.Hierarchy;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.log.Hierarchy;
import org.apache.log.Logger;
/** /**
* Implementation of {@code org.apache.commons.logging.Log} * Implementation of {@code org.apache.commons.logging.Log}

View File

@@ -18,6 +18,7 @@
package org.apache.commons.logging.impl; package org.apache.commons.logging.impl;
import java.io.Serializable; import java.io.Serializable;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
/** /**

View File

@@ -17,9 +17,10 @@
package org.apache.commons.logging; package org.apache.commons.logging;
import junit.framework.TestCase;
import java.util.Hashtable; import java.util.Hashtable;
import junit.framework.TestCase;
/** /**
* Tests behavior when the property is misconfigured. * Tests behavior when the property is misconfigured.
*/ */

View File

@@ -16,14 +16,14 @@
*/ */
package org.apache.commons.logging.avalon; package org.apache.commons.logging.avalon;
import org.apache.avalon.framework.logger.NullLogger;
import org.apache.commons.logging.impl.AvalonLogger;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.AbstractLogTest;
import junit.framework.Test; import junit.framework.Test;
import junit.framework.TestSuite; import junit.framework.TestSuite;
import org.apache.avalon.framework.logger.NullLogger;
import org.apache.commons.logging.AbstractLogTest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.impl.AvalonLogger;
/** /**
*/ */
public class AvalonLoggerTestCase extends AbstractLogTest { public class AvalonLoggerTestCase extends AbstractLogTest {

View File

@@ -20,8 +20,8 @@ package org.apache.commons.logging.jdk14;
import junit.framework.Test; import junit.framework.Test;
import org.apache.commons.logging.PathableTestSuite;
import org.apache.commons.logging.PathableClassLoader; import org.apache.commons.logging.PathableClassLoader;
import org.apache.commons.logging.PathableTestSuite;
/** /**

View File

@@ -22,10 +22,10 @@ import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream; import java.io.ObjectInputStream;
import java.io.ObjectOutputStream; import java.io.ObjectOutputStream;
import org.apache.commons.logging.AbstractLogTest;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.impl.NoOpLog; import org.apache.commons.logging.impl.NoOpLog;
import org.apache.commons.logging.AbstractLogTest;
/** /**
* Tests for NoOpLog logging adapter. * Tests for NoOpLog logging adapter.

View File

@@ -17,6 +17,7 @@
package org.apache.commons.logging.serviceloader; package org.apache.commons.logging.serviceloader;
import junit.framework.TestCase; import junit.framework.TestCase;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.serviceloader.internal.DummyLogFactory; import org.apache.commons.logging.serviceloader.internal.DummyLogFactory;

View File

@@ -18,9 +18,10 @@
package org.apache.commons.logging.simple; package org.apache.commons.logging.simple;
import java.text.DateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.text.DateFormat;
import org.apache.commons.logging.impl.SimpleLog; import org.apache.commons.logging.impl.SimpleLog;

View File

@@ -16,14 +16,14 @@
*/ */
package org.apache.commons.logging.tccl; package org.apache.commons.logging.tccl;
import junit.framework.Test;
import junit.framework.TestCase;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.PathableClassLoader; import org.apache.commons.logging.PathableClassLoader;
import org.apache.commons.logging.PathableTestSuite; import org.apache.commons.logging.PathableTestSuite;
import junit.framework.Test;
import junit.framework.TestCase;
/** /**
* Simulates the case when TCCL is badly set and cannot load JCL. * Simulates the case when TCCL is badly set and cannot load JCL.
*/ */

View File

@@ -16,13 +16,13 @@
*/ */
package org.apache.commons.logging.tccl; package org.apache.commons.logging.tccl;
import junit.framework.Test;
import junit.framework.TestCase;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.PathableTestSuite; import org.apache.commons.logging.PathableTestSuite;
import junit.framework.Test;
import junit.framework.TestCase;
/** /**
* Simulates the case when TCCL is set to NULL. * Simulates the case when TCCL is set to NULL.
*/ */