inprocess: mark all classes final

This commit is contained in:
Carl Mastrangelo 2017-06-22 12:25:32 -07:00 committed by GitHub
parent 859d211b6e
commit 51ce204f53
5 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ import java.net.SocketAddress;
* <p>The channel is intended to be fully-featured, high performance, and useful in testing. * <p>The channel is intended to be fully-featured, high performance, and useful in testing.
*/ */
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1783") @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1783")
public class InProcessChannelBuilder extends public final class InProcessChannelBuilder extends
AbstractManagedChannelImplBuilder<InProcessChannelBuilder> { AbstractManagedChannelImplBuilder<InProcessChannelBuilder> {
/** /**
* Create a channel builder that will connect to the server with the given name. * Create a channel builder that will connect to the server with the given name.

View File

@ -25,7 +25,7 @@ import java.util.concurrent.ConcurrentMap;
import javax.annotation.concurrent.ThreadSafe; import javax.annotation.concurrent.ThreadSafe;
@ThreadSafe @ThreadSafe
class InProcessServer implements InternalServer { final class InProcessServer implements InternalServer {
private static final ConcurrentMap<String, InProcessServer> registry private static final ConcurrentMap<String, InProcessServer> registry
= new ConcurrentHashMap<String, InProcessServer>(); = new ConcurrentHashMap<String, InProcessServer>();

View File

@ -31,7 +31,7 @@ import java.util.List;
*/ */
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1783") @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1783")
public final class InProcessServerBuilder public final class InProcessServerBuilder
extends AbstractServerImplBuilder<InProcessServerBuilder> { extends AbstractServerImplBuilder<InProcessServerBuilder> {
/** /**
* Create a server builder that will bind with the given name. * Create a server builder that will bind with the given name.
* *

View File

@ -21,7 +21,7 @@ import java.net.SocketAddress;
/** /**
* Custom SocketAddress class for {@link InProcessTransport}. * Custom SocketAddress class for {@link InProcessTransport}.
*/ */
public class InProcessSocketAddress extends SocketAddress { public final class InProcessSocketAddress extends SocketAddress {
private static final long serialVersionUID = -2803441206326023474L; private static final long serialVersionUID = -2803441206326023474L;
private final String name; private final String name;

View File

@ -51,7 +51,7 @@ import javax.annotation.concurrent.GuardedBy;
import javax.annotation.concurrent.ThreadSafe; import javax.annotation.concurrent.ThreadSafe;
@ThreadSafe @ThreadSafe
class InProcessTransport implements ServerTransport, ConnectionClientTransport { final class InProcessTransport implements ServerTransport, ConnectionClientTransport {
private static final Logger log = Logger.getLogger(InProcessTransport.class.getName()); private static final Logger log = Logger.getLogger(InProcessTransport.class.getName());
private final LogId logId = LogId.allocate(getClass().getName()); private final LogId logId = LogId.allocate(getClass().getName());