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 2026/01/04 17:35:39 UTC
(commons-crypto) 01/05: Use a code comment, not Javadoc inside a method
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
commit 5961b7c750f8a0e2cdfeb7aa0c48b60afee81a60
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 4 12:31:41 2026 -0500
Use a code comment, not Javadoc inside a method
---
.../commons/crypto/stream/PositionedCryptoInputStream.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java b/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
index ad9eb468..8f5f6acb 100644
--- a/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
+++ b/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
@@ -256,11 +256,11 @@ private void decryptBuffer(final CipherState state, final ByteBuffer inByteBuffe
try {
final int n = state.getCryptoCipher().update(inByteBuffer, outByteBuffer);
if (n < inputSize) {
- /**
- * Typically code will not get here. CryptoCipher#update will
- * consume all input data and put result in outBuffer.
- * CryptoCipher#doFinal will reset the cipher context.
- */
+ //
+ // Typically code will not get here. CryptoCipher#update will
+ // consume all input data and put result in outBuffer.
+ // CryptoCipher#doFinal will reset the cipher context.
+ //
state.getCryptoCipher().doFinal(inByteBuffer, outByteBuffer);
state.reset(true);
}