From 4ca0ff3cd9c9a1dd7927efee0ee316a8aea4d713 Mon Sep 17 00:00:00 2001 From: David Noble Date: Sat, 4 May 2019 09:20:28 -0700 Subject: [PATCH] Marked some classes as final --- .../internal/directconnectivity/rntbd/RntbdRequestRecord.java | 2 +- .../internal/directconnectivity/rntbd/RntbdServiceEndpoint.java | 2 +- .../internal/directconnectivity/RntbdTransportClientTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdRequestRecord.java b/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdRequestRecord.java index 6343977f..5b7b8de2 100644 --- a/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdRequestRecord.java +++ b/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdRequestRecord.java @@ -38,7 +38,7 @@ import java.util.concurrent.TimeUnit; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; -public class RntbdRequestRecord extends CompletableFuture { +public final class RntbdRequestRecord extends CompletableFuture { private final RntbdRequestArgs args; private final RntbdRequestTimer timer; diff --git a/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdServiceEndpoint.java b/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdServiceEndpoint.java index 3b036a44..d2f1a589 100644 --- a/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdServiceEndpoint.java +++ b/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdServiceEndpoint.java @@ -55,7 +55,7 @@ import java.util.stream.Stream; import static com.google.common.base.Preconditions.checkNotNull; import static com.microsoft.azure.cosmosdb.internal.directconnectivity.RntbdTransportClient.Metrics; -public class RntbdServiceEndpoint implements RntbdEndpoint { +public final class RntbdServiceEndpoint implements RntbdEndpoint { private static final String className = RntbdServiceEndpoint.class.getCanonicalName(); private static final AtomicLong instanceCount = new AtomicLong(); diff --git a/direct-impl/src/test/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/RntbdTransportClientTest.java b/direct-impl/src/test/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/RntbdTransportClientTest.java index 28d049ba..3b77e8a8 100644 --- a/direct-impl/src/test/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/RntbdTransportClientTest.java +++ b/direct-impl/src/test/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/RntbdTransportClientTest.java @@ -85,7 +85,7 @@ import static com.microsoft.azure.cosmosdb.internal.HttpConstants.SubStatusCodes import static org.testng.Assert.assertTrue; import static org.testng.Assert.fail; -public class RntbdTransportClientTest { +public final class RntbdTransportClientTest { private static final Logger logger = LoggerFactory.getLogger(RntbdTransportClientTest.class); private static final int lsn = 5;