summaryrefslogtreecommitdiffstats
path: root/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerActivator.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2017-11-09 16:28:42 +0100
committerBjørn Christian Seime <bjorncs@oath.com>2017-11-09 16:47:33 +0100
commitb9a61f16cdffcfffb38f4bc34828b2ee2ebe6589 (patch)
tree0ed0db5689e2f65d80c7f614b33d2d7e96f0107d /standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerActivator.java
parent2aa95be7cbc114fb2808c77e7f7242920b084802 (diff)
Add static modifier + fix warnings
Diffstat (limited to 'standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerActivator.java')
-rw-r--r--standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerActivator.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerActivator.java b/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerActivator.java
index 79947b5a347..baf0b41b270 100644
--- a/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerActivator.java
+++ b/standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerActivator.java
@@ -42,13 +42,13 @@ public class StandaloneContainerActivator implements BundleActivator {
}
}
- void registerChannels(BundleContext bundleContext, int listenPort, ServerSocketChannel boundChannel) {
+ static void registerChannels(BundleContext bundleContext, int listenPort, ServerSocketChannel boundChannel) {
Hashtable<String, Integer> properties = new Hashtable<>();
properties.put("port", listenPort);
bundleContext.registerService(ServerSocketChannel.class, boundChannel, properties);
}
- ServerSocketChannel bindChannel(ConnectorConfig channelInfo) throws IOException {
+ static ServerSocketChannel bindChannel(ConnectorConfig channelInfo) throws IOException {
ServerSocketChannel serverChannel = ServerSocketChannel.open();
InetSocketAddress bindAddress = new InetSocketAddress(channelInfo.listenPort());
serverChannel.socket().bind(bindAddress, channelInfo.acceptQueueSize());
@@ -58,7 +58,7 @@ public class StandaloneContainerActivator implements BundleActivator {
@Override
public void stop(BundleContext bundleContext) throws Exception { }
- Container getContainer(Module... modules) {
+ static Container getContainer(Module... modules) {
Module activatorModule = new ActivatorModule();
List<Module> allModules = new ArrayList<>();
allModules.addAll(Arrays.asList(modules));
@@ -68,7 +68,7 @@ public class StandaloneContainerActivator implements BundleActivator {
return app.container();
}
- List<ConnectorConfig> getConnectorConfigs(Container container) {
+ static List<ConnectorConfig> getConnectorConfigs(Container container) {
Http http = container.getHttp();
return (http == null) ?