This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git
commit 9d4efee06512bac5f50e168ddd8cbf3ad6c63c33 Author: lburgazzoli <lburgazz...@gmail.com> AuthorDate: Tue Jun 25 13:41:14 2019 +0200 checkstyle: fix camel-k-runtime-servlet violations --- .../main/java/org/apache/camel/k/servlet/ServletEndpoint.java | 3 ++- .../java/org/apache/camel/k/servlet/ServletRegistration.java | 10 +++++----- .../camel/k/servlet/ServletRegistrationContextCustomizer.java | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletEndpoint.java b/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletEndpoint.java index d6d21d2..afff9a1 100644 --- a/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletEndpoint.java +++ b/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletEndpoint.java @@ -56,7 +56,8 @@ public class ServletEndpoint extends ServiceSupport { .setContextPath(path) .setDeploymentName("camel-k.war"); - context.getRegistry().findByType(ServletRegistration.class).forEach( r -> { + context.getRegistry().findByType(ServletRegistration.class) + .forEach(r -> { LOGGER.info("Registering servlet: {}", r); servletBuilder.addServlet( diff --git a/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletRegistration.java b/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletRegistration.java index 197267f..03d5dd2 100644 --- a/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletRegistration.java +++ b/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletRegistration.java @@ -72,10 +72,10 @@ public final class ServletRegistration { @Override public String toString() { - return "ServletRegistration{" + - "servlet=" + servlet + - ", name='" + name + '\'' + - ", mappings=" + mappings + - '}'; + return "ServletRegistration{" + + "servlet=" + servlet + + ", name='" + name + '\'' + + ", mappings=" + mappings + + '}'; } } diff --git a/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletRegistrationContextCustomizer.java b/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletRegistrationContextCustomizer.java index cca2fe6..274964c 100644 --- a/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletRegistrationContextCustomizer.java +++ b/camel-k-runtime-servlet/src/main/java/org/apache/camel/k/servlet/ServletRegistrationContextCustomizer.java @@ -28,11 +28,11 @@ public class ServletRegistrationContextCustomizer implements ContextCustomizer { private String path; private String camelServletName; - public ServletRegistrationContextCustomizer(){ + public ServletRegistrationContextCustomizer() { this(DEFAULT_PATH, DEFAULT_CAMEL_SERVLET_NAME); } - public ServletRegistrationContextCustomizer(String path, String camelServletName){ + public ServletRegistrationContextCustomizer(String path, String camelServletName) { this.path = path; this.camelServletName = camelServletName; }