commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject commons-crypto git commit: CRYPTO-32: Add missing @Overrides
Date Thu, 28 Apr 2016 02:22:54 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master e99c77b93 -> 90e67c99a


CRYPTO-32: Add missing @Overrides


Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/90e67c99
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/90e67c99
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/90e67c99

Branch: refs/heads/master
Commit: 90e67c99a5a02436622807095beab7c50a500cbf
Parents: e99c77b
Author: Sun Dapeng <sdp@apache.org>
Authored: Wed Apr 27 11:11:59 2016 +0800
Committer: Sun Dapeng <sdp@apache.org>
Committed: Thu Apr 28 10:18:02 2016 +0800

----------------------------------------------------------------------
 .../org/apache/commons/crypto/stream/CTRCipherInputStream.java     | 2 ++
 .../java/org/apache/commons/crypto/stream/CipherOutputStream.java  | 1 +
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/90e67c99/src/main/java/org/apache/commons/crypto/stream/CTRCipherInputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/stream/CTRCipherInputStream.java b/src/main/java/org/apache/commons/crypto/stream/CTRCipherInputStream.java
index f286ad8..89f107e 100644
--- a/src/main/java/org/apache/commons/crypto/stream/CTRCipherInputStream.java
+++ b/src/main/java/org/apache/commons/crypto/stream/CTRCipherInputStream.java
@@ -375,6 +375,7 @@ public class CTRCipherInputStream extends CipherInputStream {
    * @return The number of decrypted data. -1 if end of the decrypted stream.
    * @throws IOException if an I/O error occurs.
    */
+  @Override
   protected int decryptMore() throws IOException {
     int n = input.read(inBuffer);
     if (n <= 0) {
@@ -394,6 +395,7 @@ public class CTRCipherInputStream extends CipherInputStream {
    *
    * @throws IOException if an I/O error occurs.
    */
+  @Override
   protected void decrypt() throws IOException {
     Utils.checkState(inBuffer.position() >= padding);
     if(inBuffer.position() == padding) {

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/90e67c99/src/main/java/org/apache/commons/crypto/stream/CipherOutputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/stream/CipherOutputStream.java b/src/main/java/org/apache/commons/crypto/stream/CipherOutputStream.java
index 0106055..2418841 100644
--- a/src/main/java/org/apache/commons/crypto/stream/CipherOutputStream.java
+++ b/src/main/java/org/apache/commons/crypto/stream/CipherOutputStream.java
@@ -201,6 +201,7 @@ public class CipherOutputStream extends OutputStream implements
    * @param len the number of bytes to write.
    * @throws IOException if an I/O error occurs.
    */
+  @Override
   public void write(byte[] b, int off, int len) throws IOException {
     checkStream();
     if (b == null) {


Mime
View raw message