aboutsummaryrefslogtreecommitdiff
path: root/testing/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'testing/src/main')
-rw-r--r--testing/src/main/java/io/grpc/internal/testing/TestUtils.java2
-rw-r--r--testing/src/main/java/io/grpc/testing/GrpcCleanupRule.java2
-rw-r--r--testing/src/main/java/io/grpc/testing/TestUtils.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/testing/src/main/java/io/grpc/internal/testing/TestUtils.java b/testing/src/main/java/io/grpc/internal/testing/TestUtils.java
index e7524671c..9a01b6a88 100644
--- a/testing/src/main/java/io/grpc/internal/testing/TestUtils.java
+++ b/testing/src/main/java/io/grpc/internal/testing/TestUtils.java
@@ -90,7 +90,7 @@ public class TestUtils {
} catch (NoSuchAlgorithmException ex) {
throw new RuntimeException(ex);
}
- List<String> ciphersMinusGcm = new ArrayList<String>();
+ List<String> ciphersMinusGcm = new ArrayList<>();
for (String cipher : ciphers) {
// The GCM implementation in Java is _very_ slow (~1 MB/s)
if (cipher.contains("_GCM_")) {
diff --git a/testing/src/main/java/io/grpc/testing/GrpcCleanupRule.java b/testing/src/main/java/io/grpc/testing/GrpcCleanupRule.java
index 541bd73dd..82a986f77 100644
--- a/testing/src/main/java/io/grpc/testing/GrpcCleanupRule.java
+++ b/testing/src/main/java/io/grpc/testing/GrpcCleanupRule.java
@@ -47,7 +47,7 @@ import org.junit.runners.model.Statement;
@NotThreadSafe
public final class GrpcCleanupRule implements TestRule {
- private final List<Resource> resources = new ArrayList<Resource>();
+ private final List<Resource> resources = new ArrayList<>();
private long timeoutNanos = TimeUnit.SECONDS.toNanos(10L);
private Stopwatch stopwatch = Stopwatch.createUnstarted();
diff --git a/testing/src/main/java/io/grpc/testing/TestUtils.java b/testing/src/main/java/io/grpc/testing/TestUtils.java
index 19333bbbd..15de4cfed 100644
--- a/testing/src/main/java/io/grpc/testing/TestUtils.java
+++ b/testing/src/main/java/io/grpc/testing/TestUtils.java
@@ -78,7 +78,7 @@ public class TestUtils {
} catch (NoSuchAlgorithmException ex) {
throw new RuntimeException(ex);
}
- List<String> ciphersMinusGcm = new ArrayList<String>();
+ List<String> ciphersMinusGcm = new ArrayList<>();
for (String cipher : ciphers) {
// The GCM implementation in Java is _very_ slow (~1 MB/s)
if (cipher.contains("_GCM_")) {