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.
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1783")
public class InProcessChannelBuilder extends
public final class InProcessChannelBuilder extends
AbstractManagedChannelImplBuilder<InProcessChannelBuilder> {
/**
* 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;
@ThreadSafe
class InProcessServer implements InternalServer {
final class InProcessServer implements InternalServer {
private static final ConcurrentMap<String, InProcessServer> registry
= new ConcurrentHashMap<String, InProcessServer>();

View File

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

View File

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