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 2019/10/08 22:19:18 UTC
[commons-crypto] branch master updated: Reduce the boilerplate with
lambdas.
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 4cdf3a0 Reduce the boilerplate with lambdas.
4cdf3a0 is described below
commit 4cdf3a05e04d4ac16666ad1abefbfdac2f417170
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Oct 8 18:19:14 2019 -0400
Reduce the boilerplate with lambdas.
---
.../org/apache/commons/crypto/random/AbstractRandomTest.java | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java b/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java
index 619c1a3..920b7df 100644
--- a/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java
+++ b/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java
@@ -51,13 +51,10 @@ public abstract class AbstractRandomTest {
final List<Thread> threads = new ArrayList<>(threadCount);
for (int i = 0; i < threadCount; i++) {
- Thread t = new Thread(new Runnable() {
- @Override
- public void run() {
- checkRandomBytes(random, 10);
- checkRandomBytes(random, 1000);
- checkRandomBytes(random, 100000);
- }
+ Thread t = new Thread(() -> {
+ checkRandomBytes(random, 10);
+ checkRandomBytes(random, 1000);
+ checkRandomBytes(random, 100000);
});
t.start();
threads.add(t);