[java] Deleting unused import (and formatting code)
import java.io.UncheckedIOException;
import java.net.MalformedURLException;
import java.net.URL;
-import java.util.Map;
import static com.google.common.net.HttpHeaders.CONTENT_TYPE;
import static java.nio.charset.StandardCharsets.UTF_8;
public class NettyAppServer implements AppServer {
- private static Config sslConfig = new MapConfig(
+ private final static Config sslConfig = new MapConfig(
singletonMap("server", singletonMap("https-self-signed", true)));
private final Server<?> server;
@@ -136,8 +135,8 @@ public String whereIsSecure(String relativeUrl) {
@Override
public String whereIsWithCredentials(String relativeUrl, String user, String password) {
- return String.format
- ("http://%s:%s@%s:%d/%s",
+ return String.format(
+ "http://%s:%s@%s:%d/%s",
user,
password,
getHostName(),
@@ -155,8 +154,8 @@ private String createUrl(Server<?> server, String protocol, String hostName, Str
protocol,
hostName,
server.getUrl().getPort(),
- relativeUrl)
- .toString();
+ relativeUrl
+ ).toString();
} catch (MalformedURLException e) {
throw new UncheckedIOException(e);
}
