From 52e65ec0d89700b754f6393deeb3810fe5dffbb3 Mon Sep 17 00:00:00 2001 From: Laglangyue <35491928+laglangyue@users.noreply.github.com> Date: Fri, 19 Apr 2024 06:26:01 +0800 Subject: [PATCH] minor: remove the unnecessary final,static (#11098) --- alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java | 2 +- .../src/main/java/io/grpc/alts/ComputeEngineChannelBuilder.java | 2 +- .../src/main/java/io/grpc/alts/GoogleDefaultChannelBuilder.java | 2 +- .../test/java/io/grpc/alts/internal/AltsHandshakerStubTest.java | 2 +- core/src/testFixtures/java/io/grpc/internal/TestUtils.java | 2 +- .../main/java/io/grpc/examples/routeguide/RouteGuideServer.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java b/alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java index 81dd75eab4..af80a3c5dd 100644 --- a/alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java +++ b/alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java @@ -38,7 +38,7 @@ public final class AltsChannelBuilder extends ForwardingChannelBuilder2 getOrCreateNotes(Point location) { - List notes = Collections.synchronizedList(new ArrayList()); + List notes = Collections.synchronizedList(new ArrayList<>()); List prevNotes = routeNotes.putIfAbsent(location, notes); return prevNotes != null ? prevNotes : notes; }