diff options
author | Carl Mastrangelo <notcarl@google.com> | 2018-09-14 13:52:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-14 13:52:29 -0700 |
commit | b0f423295b4674cb5247a6143fd211b050ef0065 (patch) | |
tree | d08aeb9c76673564258fc3b178223fe2dbf969c0 /testing | |
parent | 6cf849a7ceb0b223a497dff02742b2f76e1cbaa7 (diff) | |
download | grpc-grpc-java-b0f423295b4674cb5247a6143fd211b050ef0065.tar.gz |
all: use Java7 brackets
Diffstat (limited to 'testing')
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_")) { |