You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/08/30 15:12:07 UTC
[commons-crypto] branch master updated: Update provenance as comment.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git
The following commit(s) were added to refs/heads/master by this push:
new 55e0672 Update provenance as comment.
55e0672 is described below
commit 55e0672bbc4a75b9a4fca37c516dd67880e3ac42
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Aug 30 11:12:03 2022 -0400
Update provenance as comment.
---
src/main/java/org/apache/commons/crypto/NativeCodeLoader.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java b/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
index 0ed1fd2..2808345 100644
--- a/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
+++ b/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
@@ -58,12 +58,14 @@ final class NativeCodeLoader {
/**
* Returns the given InputStream if it is already a {@link BufferedInputStream},
* otherwise creates a BufferedInputStream from the given InputStream.
+ * <p>
+ * Copied from Apache Commons IO 2.5.
+ * </p>
*
* @param inputStream the InputStream to wrap or return (not null)
* @return the given InputStream or a new {@link BufferedInputStream} for the
* given InputStream
* @throws NullPointerException if the input parameter is null
- * @since Apache Commons IO 2.5
*/
@SuppressWarnings("resource")
private static BufferedInputStream buffer(final InputStream inputStream) {
@@ -76,12 +78,14 @@ final class NativeCodeLoader {
/**
* Checks whether in1 and in2 is equal.
+ * <p>
+ * Copied from Apache Commons IO 2.5.
+ * </p>
*
* @param input1 the input1.
* @param input2 the input2.
* @return true if in1 and in2 is equal, else false.
* @throws IOException if an I/O error occurs.
- * @since Apache Commons IO 2.5
*/
@SuppressWarnings("resource")
private static boolean contentsEquals(final InputStream input1, final InputStream input2) throws IOException {