mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 12:02:20 +00:00
Remove usages of org.apache.commons.io.output.ByteArrayOutputStream (#8146)
This commit is contained in:
1 parent
3d40964e77
commit
77f024ae6b
7 files changed
+11
-7
No files matched your search
@@ -34,6 +34,7 @@ import edu.umd.cs.findbugs.annotations.CheckReturnValue;
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
import hudson.remoting.ObjectInputStreamEx;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.ObjectInputStream;
|
||||
@@ -49,7 +50,6 @@ import javax.crypto.CipherInputStream;
|
||||
import javax.crypto.CipherOutputStream;
|
||||
import jenkins.model.Jenkins;
|
||||
import jenkins.security.CryptoConfidentialKey;
|
||||
import org.apache.commons.io.output.ByteArrayOutputStream;
|
||||
import org.jenkinsci.remoting.util.AnonymousClassWarnings;
|
||||
import org.kohsuke.stapler.Stapler;
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
|
||||
@@ -35,6 +35,7 @@ import hudson.model.Run;
|
||||
import hudson.remoting.ClassFilter;
|
||||
import hudson.remoting.ObjectInputStreamEx;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -54,7 +55,6 @@ import jenkins.security.HMACConfidentialKey;
|
||||
import jenkins.util.JenkinsJVM;
|
||||
import jenkins.util.SystemProperties;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.io.output.ByteArrayOutputStream;
|
||||
import org.apache.tools.ant.BuildListener;
|
||||
import org.jenkinsci.remoting.util.AnonymousClassWarnings;
|
||||
import org.kohsuke.accmod.Restricted;
|
||||
|
||||
@@ -35,6 +35,7 @@ import hudson.model.ManagementLink;
|
||||
import hudson.model.TaskListener;
|
||||
import hudson.util.StreamTaskListener;
|
||||
import hudson.util.jna.DotNet;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
@@ -46,7 +47,6 @@ import javax.servlet.ServletException;
|
||||
import jenkins.model.Jenkins;
|
||||
import jenkins.util.SystemProperties;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.io.output.ByteArrayOutputStream;
|
||||
import org.apache.tools.ant.DefaultLogger;
|
||||
import org.apache.tools.ant.Project;
|
||||
import org.apache.tools.ant.taskdefs.Move;
|
||||
|
||||
@@ -32,6 +32,7 @@ import hudson.Launcher.LocalLauncher;
|
||||
import hudson.Util;
|
||||
import hudson.util.StreamTaskListener;
|
||||
import hudson.util.jna.Kernel32;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
@@ -43,7 +44,6 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import jenkins.model.Jenkins;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.io.output.ByteArrayOutputStream;
|
||||
|
||||
/**
|
||||
* {@link Lifecycle} for Hudson installed as Windows service.
|
||||
|
||||
@@ -35,6 +35,7 @@ import hudson.Util;
|
||||
import hudson.node_monitors.ArchitectureMonitor;
|
||||
import hudson.security.Permission;
|
||||
import hudson.util.Secret;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.FilterInputStream;
|
||||
import java.io.FilterOutputStream;
|
||||
@@ -65,7 +66,6 @@ import javax.crypto.spec.SecretKeySpec;
|
||||
import jenkins.model.Jenkins;
|
||||
import jenkins.util.SystemProperties;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.apache.commons.io.output.ByteArrayOutputStream;
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
|
||||
package hudson.util;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.FilterInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import org.apache.commons.io.output.ByteArrayOutputStream;
|
||||
|
||||
/**
|
||||
* {@link FilterInputStream} that buffers the first N bytes to a byte array on the side.
|
||||
|
||||
Reference in new issue
Block a user