commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1565287 - /commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/Streams.java
Date Thu, 06 Feb 2014 14:49:13 GMT
Author: ggregory
Date: Thu Feb  6 14:49:13 2014
New Revision: 1565287

URL: http://svn.apache.org/r1565287
Log:
Better param names.

Modified:
    commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/Streams.java

Modified: commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/Streams.java
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/Streams.java?rev=1565287&r1=1565286&r2=1565287&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/Streams.java
(original)
+++ commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/Streams.java
Thu Feb  6 14:49:13 2014
@@ -54,10 +54,10 @@ public final class Streams {
      * @param pInputStream The input stream, which is being read.
      * It is guaranteed, that {@link InputStream#close()} is called
      * on the stream.
-     * @param pOutputStream The output stream, to which data should
+     * @param outputStream The output stream, to which data should
      * be written. May be null, in which case the input streams
      * contents are simply discarded.
-     * @param pClose True guarantees, that {@link OutputStream#close()}
+     * @param closeOutputStream True guarantees, that {@link OutputStream#close()}
      * is called on the stream. False indicates, that only
      * {@link OutputStream#flush()} should be called finally.
      *
@@ -65,9 +65,9 @@ public final class Streams {
      * @throws IOException An I/O error occurred.
      */
     public static long copy(InputStream pInputStream,
-            OutputStream pOutputStream, boolean pClose)
+            OutputStream outputStream, boolean closeOutputStream)
             throws IOException {
-        return copy(pInputStream, pOutputStream, pClose,
+        return copy(pInputStream, outputStream, closeOutputStream,
                 new byte[DEFAULT_BUFFER_SIZE]);
     }
 



Mime
View raw message