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: [email protected]
For additional commands, e-mail: [email protected]