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 2023/01/11 14:26:03 UTC
[commons-crypto] branch master updated: Use final
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 74b65f3 Use final
74b65f3 is described below
commit 74b65f3e1894cfde6a1dd06e2f5298eb5b7a9bad
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jan 11 09:25:42 2023 -0500
Use final
---
.../java/org/apache/commons/crypto/utils/Transformation.java | 6 +++---
.../org/apache/commons/crypto/cipher/DefaultCryptoCipher.java | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/main/java/org/apache/commons/crypto/utils/Transformation.java b/src/main/java/org/apache/commons/crypto/utils/Transformation.java
index 53a61b9..e2ebfd8 100644
--- a/src/main/java/org/apache/commons/crypto/utils/Transformation.java
+++ b/src/main/java/org/apache/commons/crypto/utils/Transformation.java
@@ -88,7 +88,7 @@ public class Transformation {
/**
* Gets the algorithm.
- *
+ *
* @return the algorithm.
*/
public String getAlgorithm() {
@@ -97,7 +97,7 @@ public class Transformation {
/**
* Gets the mode.
- *
+ *
* @return the mode.
*/
public String getMode() {
@@ -106,7 +106,7 @@ public class Transformation {
/**
* Gets the padding.
- *
+ *
* @return the padding.
*/
public Padding getPadding() {
diff --git a/src/test/java/org/apache/commons/crypto/cipher/DefaultCryptoCipher.java b/src/test/java/org/apache/commons/crypto/cipher/DefaultCryptoCipher.java
index 4e0f3cd..32b49a5 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/DefaultCryptoCipher.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/DefaultCryptoCipher.java
@@ -53,31 +53,31 @@ public class DefaultCryptoCipher implements CryptoCipher {
}
@Override
- public void init(int mode, Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException {
+ public void init(final int mode, final Key key, final AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException {
// Simplest
}
@Override
- public int update(ByteBuffer inBuffer, ByteBuffer outBuffer) throws ShortBufferException {
+ public int update(final ByteBuffer inBuffer, final ByteBuffer outBuffer) throws ShortBufferException {
// Simplest
return 0;
}
@Override
- public int update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException {
+ public int update(final byte[] input, final int inputOffset, final int inputLen, final byte[] output, final int outputOffset) throws ShortBufferException {
// Simplest
return 0;
}
@Override
- public int doFinal(ByteBuffer inBuffer, ByteBuffer outBuffer) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException {
+ public int doFinal(final ByteBuffer inBuffer, final ByteBuffer outBuffer) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException {
// Simplest
return 0;
}
@Override
- public int doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
+ public int doFinal(final byte[] input, final int inputOffset, final int inputLen, final byte[] output, final int outputOffset)
throws ShortBufferException, IllegalBlockSizeException, BadPaddingException {
// Simplest
return 0;