commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kinow <...@git.apache.org>
Subject [GitHub] commons-imaging pull request #15: Imaging-136
Date Sun, 31 Dec 2017 22:46:03 GMT
Github user kinow commented on a diff in the pull request:

    https://github.com/apache/commons-imaging/pull/15#discussion_r159147391
  
    --- Diff: src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java ---
    @@ -317,4 +317,23 @@ public static void copyStreamToStream(final InputStream is, final
OutputStream o
             copyStreamToStream(is, os);
             return os.toByteArray();
         }
    +        
    +    /**
    +     * This method shall behave exactly the same as int[] java.util.Arrays.copyOfRange(int[],
int, int)
    +     * which is not available for Java 1.5.
    +     * <p>
    +     * <b>Please use int[] java.util.Arrays.copyOfRange(int[], int, int) after
shift to Java 1.6 or better!</b>
    +     * @param originalArray
    +     * @param fromPosition
    +     * @param toPosition
    +     * @return 
    +     */
    +    public static int[] copyArray(int[] originalArray, int fromPosition, int toPosition)
{
    --- End diff --
    
    We can replace it now as Commons Imaging is building with Java 7.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message