From 81d8c8374ef311d4cbf6c0f0db1ff0826b5fe250 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 23 Nov 2018 03:23:45 -0500 Subject: [PATCH] Fix up Checkstyle styles from PR --- .../java/com/velocitypowered/proxy/ProxyOptions.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/ProxyOptions.java b/proxy/src/main/java/com/velocitypowered/proxy/ProxyOptions.java index b2a12358d..30a617b9f 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/ProxyOptions.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/ProxyOptions.java @@ -1,5 +1,7 @@ package com.velocitypowered.proxy; +import java.io.IOException; +import java.util.Arrays; import joptsimple.OptionParser; import joptsimple.OptionSet; import joptsimple.OptionSpec; @@ -7,9 +9,6 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.checkerframework.checker.nullness.qual.Nullable; -import java.io.IOException; -import java.util.Arrays; - public final class ProxyOptions { private static final Logger logger = LogManager.getLogger(ProxyOptions.class); private final boolean help; @@ -18,8 +17,11 @@ public final class ProxyOptions { ProxyOptions(final String[] args) { final OptionParser parser = new OptionParser(); - final OptionSpec help = parser.acceptsAll(Arrays.asList("h", "help"), "Print help").forHelp(); - final OptionSpec port = parser.acceptsAll(Arrays.asList("p", "port"), "Specify the bind port to be used. The configuration bind port will be ignored.").withRequiredArg().ofType(Integer.class); + final OptionSpec help = parser.acceptsAll(Arrays.asList("h", "help"), "Print help") + .forHelp(); + final OptionSpec port = parser.acceptsAll(Arrays.asList("p", "port"), + "Specify the bind port to be used. The configuration bind port will be ignored.") + .withRequiredArg().ofType(Integer.class); final OptionSet set = parser.parse(args); this.help = set.has(help);