This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit dfc16b534f1f020c78b7808a7d71f6d72740021e Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Thu Nov 30 14:58:22 2023 -0300 (chores) use static inner classes --- .../org/apache/camel/component/jetty/ExplicitJettyAsyncRouteTest.java | 2 +- .../java/org/apache/camel/component/jetty/ExplicitJettyRouteTest.java | 2 +- .../test/java/org/apache/camel/component/jetty/HttpBindingRefTest.java | 2 +- .../org/apache/camel/component/jetty/HttpCharacterEncodingTest.java | 2 +- .../java/org/apache/camel/component/jetty/HttpRequestResponseTest.java | 2 +- .../java/org/apache/camel/component/jetty/JettyContentTypeTest.java | 2 +- .../test/java/org/apache/camel/component/jetty/JettyImageFileTest.java | 2 +- .../apache/camel/component/jetty/JettyResponseBodyWhenErrorTest.java | 2 +- .../src/test/java/org/apache/camel/component/jetty/JettyRouteTest.java | 2 +- .../camel/component/jetty/JettyRouteWithSocketPropertiesTest.java | 2 +- .../netty/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java | 2 +- .../camel/component/netty/http/NettyHttpCharacterEncodingTest.java | 2 +- .../netty/http/NettyHttpEndpointUriCustomHeaderFilterStrategyTest.java | 2 +- .../http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExplicitJettyAsyncRouteTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExplicitJettyAsyncRouteTest.java index 6aebea9a36b..80a52dd0885 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExplicitJettyAsyncRouteTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExplicitJettyAsyncRouteTest.java @@ -50,7 +50,7 @@ public class ExplicitJettyAsyncRouteTest extends BaseJettyTest { }; } - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) { // just get the body as a string diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExplicitJettyRouteTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExplicitJettyRouteTest.java index 771b5326bf8..07624a19e28 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExplicitJettyRouteTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExplicitJettyRouteTest.java @@ -48,7 +48,7 @@ public class ExplicitJettyRouteTest extends BaseJettyTest { }; } - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) { // just get the body as a string diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpBindingRefTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpBindingRefTest.java index b07e5b98fb0..ff6073203e8 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpBindingRefTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpBindingRefTest.java @@ -73,7 +73,7 @@ public class HttpBindingRefTest extends BaseJettyTest { } // START SNIPPET: e1 - public class MyHttpBinding extends DefaultHttpBinding { + public static class MyHttpBinding extends DefaultHttpBinding { @Override public void doWriteExceptionResponse(Throwable exception, HttpServletResponse response) throws IOException { diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpCharacterEncodingTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpCharacterEncodingTest.java index 9e9364aa186..348080a7d7a 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpCharacterEncodingTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpCharacterEncodingTest.java @@ -49,7 +49,7 @@ public class HttpCharacterEncodingTest extends BaseJettyTest { }; } - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) { // just get the body as a string diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRequestResponseTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRequestResponseTest.java index 31e81d16437..725c84b6dc7 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRequestResponseTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRequestResponseTest.java @@ -52,7 +52,7 @@ public class HttpRequestResponseTest extends BaseJettyTest { }; } - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) throws Exception { // just get the body as a string diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentTypeTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentTypeTest.java index e8c138dc0e2..7ffdf6ca878 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentTypeTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentTypeTest.java @@ -86,7 +86,7 @@ public class JettyContentTypeTest extends BaseJettyTest { }; } - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) { String user = exchange.getIn().getHeader("User", String.class); diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyImageFileTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyImageFileTest.java index b018cdb597a..79d5b062ef3 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyImageFileTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyImageFileTest.java @@ -64,7 +64,7 @@ public class JettyImageFileTest extends BaseJettyTest { }; } - public class MyImageService implements Processor { + public static class MyImageService implements Processor { @Override public void process(Exchange exchange) { exchange.getMessage().setBody(new File("src/test/data/logo.jpeg")); diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyResponseBodyWhenErrorTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyResponseBodyWhenErrorTest.java index 10f373e728f..4b644564fe7 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyResponseBodyWhenErrorTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyResponseBodyWhenErrorTest.java @@ -61,7 +61,7 @@ public class JettyResponseBodyWhenErrorTest extends BaseJettyTest { }; } - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) { throw new IllegalArgumentException("Damm"); diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyRouteTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyRouteTest.java index de61a48fbd4..411e10959eb 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyRouteTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyRouteTest.java @@ -61,7 +61,7 @@ public class JettyRouteTest extends BaseJettyTest { } // START SNIPPET: e2 - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) { // just get the body as a string diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyRouteWithSocketPropertiesTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyRouteWithSocketPropertiesTest.java index 207946ff3c1..bcf12573695 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyRouteWithSocketPropertiesTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyRouteWithSocketPropertiesTest.java @@ -62,7 +62,7 @@ public class JettyRouteWithSocketPropertiesTest extends BaseJettyTest { }; } - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) { // just get the body as a string diff --git a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java index 573388c1715..b1678008611 100644 --- a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java +++ b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBasicAuthCustomSecurityAuthenticatorTest.java @@ -74,7 +74,7 @@ public class NettyHttpBasicAuthCustomSecurityAuthenticatorTest extends BaseNetty }; } - private final class MyAuthenticator implements SecurityAuthenticator { + private static final class MyAuthenticator implements SecurityAuthenticator { @Override public void setName(String name) { diff --git a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpCharacterEncodingTest.java b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpCharacterEncodingTest.java index b5a12e9c603..14526210536 100644 --- a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpCharacterEncodingTest.java +++ b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpCharacterEncodingTest.java @@ -45,7 +45,7 @@ public class NettyHttpCharacterEncodingTest extends BaseNettyTest { }; } - public class MyBookService implements Processor { + public static class MyBookService implements Processor { @Override public void process(Exchange exchange) { // just get the body as a string diff --git a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpEndpointUriCustomHeaderFilterStrategyTest.java b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpEndpointUriCustomHeaderFilterStrategyTest.java index 795e5e97c7a..77096e23804 100644 --- a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpEndpointUriCustomHeaderFilterStrategyTest.java +++ b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpEndpointUriCustomHeaderFilterStrategyTest.java @@ -58,7 +58,7 @@ public class NettyHttpEndpointUriCustomHeaderFilterStrategyTest extends BaseNett }; } - private class CustomHeaderFilterStrategy extends DefaultHeaderFilterStrategy { + private static class CustomHeaderFilterStrategy extends DefaultHeaderFilterStrategy { CustomHeaderFilterStrategy() { // allow all outbound headers to pass through but only filter out // below inbound header diff --git a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java index ff23246dbc4..70e09e1c933 100644 --- a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java +++ b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpEngineWithTypeConverterTest.java @@ -116,7 +116,7 @@ public class VertxPlatformHttpEngineWithTypeConverterTest { }; } - abstract class MockTypeConverter implements TypeConverter { + abstract static class MockTypeConverter implements TypeConverter { @Override public boolean allowNull() { return false;
