Commit 45d85778 authored by Johnny Lim's avatar Johnny Lim Committed by Stephane Nicoll

Polish

See gh-18838
parent 7d5c468e
......@@ -124,19 +124,19 @@ public class JettyWebServerFactoryCustomizer
@Override
public void customize(Server server) {
setHandlerMaxHttpFormPostSize(maxHttpFormPostSize, server.getHandlers());
setHandlerMaxHttpFormPostSize(server.getHandlers());
}
private void setHandlerMaxHttpFormPostSize(int maxHttpPostSize, Handler... handlers) {
private void setHandlerMaxHttpFormPostSize(Handler... handlers) {
for (Handler handler : handlers) {
if (handler instanceof ContextHandler) {
((ContextHandler) handler).setMaxFormContentSize(maxHttpFormPostSize);
}
else if (handler instanceof HandlerWrapper) {
setHandlerMaxHttpFormPostSize(maxHttpFormPostSize, ((HandlerWrapper) handler).getHandler());
setHandlerMaxHttpFormPostSize(((HandlerWrapper) handler).getHandler());
}
else if (handler instanceof HandlerCollection) {
setHandlerMaxHttpFormPostSize(maxHttpFormPostSize, ((HandlerCollection) handler).getHandlers());
setHandlerMaxHttpFormPostSize(((HandlerCollection) handler).getHandlers());
}
}
}
......
......@@ -62,11 +62,11 @@ class SingleConfigurationTableEntry extends ConfigurationTableEntry {
private void writeDefaultValue(AsciidocBuilder builder) {
String defaultValue = (this.defaultValue != null) ? this.defaultValue : "";
defaultValue = defaultValue.replace("\\", "\\\\").replace("|", "\\|");
if (defaultValue.isEmpty()) {
builder.appendln("|");
}
else {
defaultValue = defaultValue.replace("\\", "\\\\").replace("|", "\\|");
builder.appendln("|`+", defaultValue, "+`");
}
}
......
......@@ -185,7 +185,6 @@ class PropertyDescriptorResolver {
return isConstructorBoundType((TypeElement) type.getEnclosingElement(), env);
}
return false;
}
}
......
......@@ -40,7 +40,7 @@ public class DeducedImmutableClassProperties {
public static class Nested {
private String name;
private final String name;
public Nested(String name) {
this.name = name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment