From 6654546671eea9f9becd32b3160a134802659cbc Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 28 Nov 2024 17:26:19 -0500 Subject: Replica2: restrict scope --- .../java/derms/replica/replica2/ResourceAvailability.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/main/java/derms/replica/replica2/ResourceAvailability.java') diff --git a/src/main/java/derms/replica/replica2/ResourceAvailability.java b/src/main/java/derms/replica/replica2/ResourceAvailability.java index c3edbd8..8bfa7bb 100644 --- a/src/main/java/derms/replica/replica2/ResourceAvailability.java +++ b/src/main/java/derms/replica/replica2/ResourceAvailability.java @@ -8,16 +8,16 @@ import java.net.InetSocketAddress; import java.util.Collection; import java.util.logging.Logger; -public class ResourceAvailability { - public static final int port = 5556; +class ResourceAvailability { + static final int port = 5556; - public static class Client implements Runnable { + static class Client implements Runnable { private InetAddress serverAddr; private ResourceType request; private Collection resources; private Logger log; - public Client(InetAddress serverAddr, ResourceType request, Collection response) throws IOException { + Client(InetAddress serverAddr, ResourceType request, Collection response) throws IOException { this.serverAddr = serverAddr; this.request = request; this.resources = response; @@ -69,14 +69,14 @@ public class ResourceAvailability { } } - public static class Server implements Runnable { - public static final int bufsize = 1024; + static class Server implements Runnable { + static final int bufsize = 1024; private InetAddress localAddr; private Resources resources; private Logger log; - public Server(InetAddress localAddr, Resources resources) throws IOException { + Server(InetAddress localAddr, Resources resources) throws IOException { this.localAddr = localAddr; this.resources = resources; this.log = DermsLogger.getLogger(this.getClass()); -- cgit v1.2.3