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/10/22 12:53:39 UTC
[commons-crypto] 08/18: Inline single use local variables
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 406a65d3e195d3f818221202f8f530ad0eefd407
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Oct 22 08:39:06 2023 -0400
Inline single use local variables
---
.../commons/crypto/stream/PositionedCryptoInputStreamTest.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java b/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
index 77b4672..9ec92a7 100644
--- a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
+++ b/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
@@ -212,8 +212,7 @@ public class PositionedCryptoInputStreamTest {
private void doPositionedReadTests() throws Exception {
try (PositionedCryptoInputStream in = getCryptoInputStream(0);
CryptoCipher cipher = in.getCipher()) {
- final String cipherClass = cipher.getClass().getName();
- doPositionedReadTests(cipherClass);
+ doPositionedReadTests(cipher.getClass().getName());
}
}
@@ -237,8 +236,7 @@ public class PositionedCryptoInputStreamTest {
private void doReadFullyTests() throws Exception {
try (PositionedCryptoInputStream in = getCryptoInputStream(0);
CryptoCipher cipher = in.getCipher()) {
- final String cipherClass = cipher.getClass().getName();
- doReadFullyTests(cipherClass);
+ doReadFullyTests(cipher.getClass().getName());
}
}