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


The following commit(s) were added to refs/heads/main by this push:
     new 51fad0a84ce (chores) HTTP code cleanup: use final when possible
51fad0a84ce is described below

commit 51fad0a84cebccdc57d1dfc6864104e7ba8d1d81
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Nov 29 11:35:38 2023 +0100

    (chores) HTTP code cleanup: use final when possible
---
 .../java/org/apache/camel/http/common/DefaultHttpRegistry.java    | 2 +-
 .../apache/camel/component/http/HttpOAuth2AuthenticationTest.java | 4 ++--
 .../component/http/handler/AuthenticationValidationHandler.java   | 4 ++--
 .../camel/component/http/handler/BasicValidationHandler.java      | 8 ++++----
 .../camel/component/http/handler/DelayValidationHandler.java      | 2 +-
 .../camel/component/http/handler/HeaderValidationHandler.java     | 2 +-
 .../camel/component/http/handler/OAuth2TokenRequestHandler.java   | 6 +++---
 .../http/handler/ProxyAuthenticationValidationHandler.java        | 4 ++--
 .../java/org/apache/camel/component/jetty/CamelFilterWrapper.java | 2 +-
 .../java/org/apache/camel/component/jetty/JettyHttpComponent.java | 6 +++---
 .../camel/component/jetty11/CamelInputStreamContentProvider.java  | 2 +-
 .../org/apache/camel/component/jetty11/JettyHttpComponent11.java  | 2 +-
 .../test/java/org/apache/camel/component/jetty/BaseJettyTest.java | 2 +-
 .../camel/component/jetty/ConvertPayloadToInputStreamTest.java    | 2 +-
 .../org/apache/camel/component/jetty/ExcludeCipherSuitesTest.java | 2 +-
 .../test/java/org/apache/camel/component/jetty/HandlerTest.java   | 8 ++++----
 .../camel/component/jetty/HttpProducerConnectionCloseTest.java    | 2 +-
 .../apache/camel/component/jetty/HttpProducerQueryParamTest.java  | 2 +-
 .../java/org/apache/camel/component/jetty/HttpProxyRouteTest.java | 2 +-
 .../test/java/org/apache/camel/component/jetty/HttpRouteTest.java | 2 +-
 .../camel/component/jetty/HttpStreamCacheFileIssueTest.java       | 2 +-
 .../camel/component/jetty/HttpStreamCacheFileResponseTest.java    | 4 ++--
 .../camel/component/jetty/HttpStreamCacheFileStopIssueTest.java   | 2 +-
 .../java/org/apache/camel/component/jetty/HttpsRouteTest.java     | 6 +++---
 .../java/org/apache/camel/component/jetty/InterfacesTest.java     | 2 +-
 .../apache/camel/component/jetty/JettyContentBasedRouteTest.java  | 2 +-
 .../camel/component/jetty/JettyHttpEndpointDisconnectTest.java    | 2 +-
 .../jetty/JettyHttpGetWithParamAsExchangeHeaderTest.java          | 2 +-
 .../apache/camel/component/jetty/JettyHttpGetWithParamTest.java   | 4 ++--
 .../camel/component/jetty/JettyHttpMapHttpMessageHeadersTest.java | 4 ++--
 .../org/apache/camel/component/jetty/JettySteveIssueTest.java     | 2 +-
 .../org/apache/camel/component/jetty/JettySuspendResumeTest.java  | 2 +-
 .../java/org/apache/camel/component/jetty/JettySuspendTest.java   | 2 +-
 .../camel/component/jetty/JettySuspendWhileInProgressTest.java    | 4 ++--
 .../java/org/apache/camel/component/jetty/MainHttpsRouteTest.java | 2 +-
 .../org/apache/camel/component/jetty/SpringHttpsRouteTest.java    | 6 +++---
 .../apache/camel/component/jetty/rest/MyCustomHttpBinding.java    | 2 +-
 .../camel/component/netty/http/HttpServerBootstrapFactory.java    | 2 +-
 .../camel/component/netty/http/InboundStreamHttpRequest.java      | 4 ++--
 .../camel/component/netty/http/InboundStreamHttpResponse.java     | 4 ++--
 .../camel/component/netty/http/OutboundStreamHttpRequest.java     | 2 +-
 .../camel/component/netty/http/OutboundStreamHttpResponse.java    | 2 +-
 .../component/netty/http/NettyHttpBridgeEncodedPathTest.java      | 2 +-
 .../netty/http/NettyHttpBridgeRouteUsingHttpClientTest.java       | 2 +-
 .../netty/http/NettyHttpConvertPayloadToInputStreamTest.java      | 2 +-
 .../camel/component/netty/http/NettyHttpCustomOptionsTest.java    | 2 +-
 .../component/netty/http/NettyHttpGetWithInvalidMessageTest.java  | 4 ++--
 .../netty/http/NettyHttpGetWithParamAsExchangeHeaderTest.java     | 2 +-
 .../camel/component/netty/http/NettyHttpGetWithParamTest.java     | 4 ++--
 .../netty/http/NettyHttpHeaderFilterStrategyRemovalTest.java      | 2 +-
 .../camel/component/netty/http/NettyHttpProducerBridgeTest.java   | 2 +-
 .../component/netty/http/NettyHttpProducerQueryParamTest.java     | 2 +-
 .../org/apache/camel/component/netty/http/NettyHttpSSLTest.java   | 2 +-
 .../netty/http/NettyHttpStreamCacheFileResponseTest.java          | 4 ++--
 .../apache/camel/component/netty/http/NettyHttpStreamTest.java    | 6 +++---
 .../camel/component/netty/http/NettyHttpSuspendResume503Test.java | 2 +-
 .../camel/component/netty/http/NettyHttpSuspendResumeTest.java    | 2 +-
 .../camel/component/netty/http/rest/RestApiMatchUriNettyTest.java | 2 +-
 .../apache/camel/component/netty/http/rest/RestApiNettyTest.java  | 2 +-
 .../camel/component/netty/http/rest/RestPathMatchingTest.java     | 2 +-
 .../component/platform/http/vertx/HttpRequestBodyHandler.java     | 2 +-
 .../component/platform/http/vertx/VertxPlatformHttpProxyTest.java | 2 +-
 .../platform/http/vertx/VertxPlatformHttpsProxyTest.java          | 2 +-
 .../camel/component/undertow/DefaultUndertowHttpBinding.java      | 4 ++--
 .../camel/component/undertow/UndertowStreamingClientCallback.java | 2 +-
 .../camel/component/undertow/handlers/CamelPathHandler.java       | 2 +-
 .../component/undertow/handlers/CamelPathTemplateHandler.java     | 6 +++---
 .../camel/component/undertow/handlers/CamelRootHandler.java       | 2 +-
 .../camel/component/undertow/UndertowHttpStreamCachingTest.java   | 2 +-
 .../org/apache/camel/component/undertow/UndertowProducerTest.java | 2 +-
 .../camel/component/undertow/UndertowSuspendResumeTest.java       | 2 +-
 .../component/undertow/cloud/UndertowServiceCallRouteTest.java    | 4 ++--
 .../org/apache/camel/component/vertx/http/VertxHttpEndpoint.java  | 2 +-
 .../camel/component/vertx/http/VertxHttpProxyServerTest.java      | 2 +-
 .../apache/camel/component/vertx/http/VertxHttpSessionTest.java   | 2 +-
 75 files changed, 107 insertions(+), 107 deletions(-)

diff --git 
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/DefaultHttpRegistry.java
 
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/DefaultHttpRegistry.java
index fc1ec8d083c..703a4d0b7e2 100644
--- 
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/DefaultHttpRegistry.java
+++ 
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/DefaultHttpRegistry.java
@@ -30,7 +30,7 @@ import org.slf4j.LoggerFactory;
 public class DefaultHttpRegistry implements HttpRegistry {
     private static final Logger LOG = 
LoggerFactory.getLogger(DefaultHttpRegistry.class);
 
-    private static Map<String, HttpRegistry> registries = new HashMap<>();
+    private static final Map<String, HttpRegistry> registries = new 
HashMap<>();
 
     private final Object lock = new Object();
 
diff --git 
a/components/camel-http/src/test/java/org/apache/camel/component/http/HttpOAuth2AuthenticationTest.java
 
b/components/camel-http/src/test/java/org/apache/camel/component/http/HttpOAuth2AuthenticationTest.java
index 593180caf58..92f8917e316 100644
--- 
a/components/camel-http/src/test/java/org/apache/camel/component/http/HttpOAuth2AuthenticationTest.java
+++ 
b/components/camel-http/src/test/java/org/apache/camel/component/http/HttpOAuth2AuthenticationTest.java
@@ -33,8 +33,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 public class HttpOAuth2AuthenticationTest extends BaseHttpTest {
 
     private static final String FAKE_TOKEN = "xxx.yyy.zzz";
-    private static String clientId = "test-client";
-    private static String clientSecret = "test-secret";
+    private static final String clientId = "test-client";
+    private static final String clientSecret = "test-secret";
 
     private HttpServer localServer;
 
diff --git 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/AuthenticationValidationHandler.java
 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/AuthenticationValidationHandler.java
index b83e18b068e..422955c3d67 100644
--- 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/AuthenticationValidationHandler.java
+++ 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/AuthenticationValidationHandler.java
@@ -26,8 +26,8 @@ import org.apache.hc.core5.http.protocol.HttpContext;
 
 public class AuthenticationValidationHandler extends BasicValidationHandler {
 
-    protected String user;
-    protected String password;
+    protected final String user;
+    protected final String password;
 
     public AuthenticationValidationHandler(String expectedMethod,
                                            String expectedQuery, Object 
expectedContent,
diff --git 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/BasicValidationHandler.java
 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/BasicValidationHandler.java
index 8a648b63846..680cffa7d5f 100644
--- 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/BasicValidationHandler.java
+++ 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/BasicValidationHandler.java
@@ -33,10 +33,10 @@ import org.apache.hc.core5.http.protocol.HttpContext;
 public class BasicValidationHandler implements HttpRequestHandler {
 
     protected String expectedUri;
-    protected String expectedMethod;
-    protected String expectedQuery;
-    protected Object expectedContent;
-    protected String responseContent;
+    protected final String expectedMethod;
+    protected final String expectedQuery;
+    protected final Object expectedContent;
+    protected final String responseContent;
 
     public BasicValidationHandler(String expectedMethod, String expectedQuery,
                                   Object expectedContent, String 
responseContent) {
diff --git 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/DelayValidationHandler.java
 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/DelayValidationHandler.java
index e5c9d4fc3ef..7de5da6405d 100644
--- 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/DelayValidationHandler.java
+++ 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/DelayValidationHandler.java
@@ -25,7 +25,7 @@ import org.apache.hc.core5.http.protocol.HttpContext;
 
 public class DelayValidationHandler extends BasicValidationHandler {
 
-    protected int delay;
+    protected final int delay;
 
     public DelayValidationHandler(String expectedMethod, String expectedQuery,
                                   Object expectedContent, String 
responseContent, int delay) {
diff --git 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/HeaderValidationHandler.java
 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/HeaderValidationHandler.java
index 83b41f0d5db..00555af8831 100644
--- 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/HeaderValidationHandler.java
+++ 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/HeaderValidationHandler.java
@@ -32,7 +32,7 @@ public class HeaderValidationHandler extends 
BasicValidationHandler {
 
     // Map of headers and values that are expected to be present
     // in HttpRequest.
-    protected Map<String, String> expectedHeaders;
+    protected final Map<String, String> expectedHeaders;
     // List of headers that are expected to be absent from HttpRequest
     // (e.g. for testing filtering).
     protected List<String> absentHeaders;
diff --git 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/OAuth2TokenRequestHandler.java
 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/OAuth2TokenRequestHandler.java
index 9423dd3a3c1..aa2253cae0a 100644
--- 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/OAuth2TokenRequestHandler.java
+++ 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/OAuth2TokenRequestHandler.java
@@ -36,9 +36,9 @@ import org.apache.hc.core5.net.WWWFormCodec;
 
 public class OAuth2TokenRequestHandler implements HttpRequestHandler {
 
-    private String clientId;
-    private String clientSecret;
-    private String expectedToken;
+    private final String clientId;
+    private final String clientSecret;
+    private final String expectedToken;
 
     public OAuth2TokenRequestHandler(String expectedToken, String clientId, 
String clientSecret) {
         this.expectedToken = expectedToken;
diff --git 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/ProxyAuthenticationValidationHandler.java
 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/ProxyAuthenticationValidationHandler.java
index 1290fa44c81..737d403ae5c 100644
--- 
a/components/camel-http/src/test/java/org/apache/camel/component/http/handler/ProxyAuthenticationValidationHandler.java
+++ 
b/components/camel-http/src/test/java/org/apache/camel/component/http/handler/ProxyAuthenticationValidationHandler.java
@@ -26,8 +26,8 @@ import org.apache.hc.core5.http.protocol.HttpContext;
 
 public class ProxyAuthenticationValidationHandler extends 
BasicValidationHandler {
 
-    protected String user;
-    protected String password;
+    protected final String user;
+    protected final String password;
 
     public ProxyAuthenticationValidationHandler(String expectedMethod,
                                                 String expectedQuery, Object 
expectedContent,
diff --git 
a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelFilterWrapper.java
 
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelFilterWrapper.java
index 7f3bf2b4589..d7173a51d5c 100644
--- 
a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelFilterWrapper.java
+++ 
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelFilterWrapper.java
@@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory;
 public class CamelFilterWrapper implements Filter {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(CamelFilterWrapper.class);
-    private Filter wrapped;
+    private final Filter wrapped;
 
     public CamelFilterWrapper(Filter wrapped) {
         this.wrapped = wrapped;
diff --git 
a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
 
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
index e92c8890ee8..d1b8f77ba11 100644
--- 
a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
+++ 
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
@@ -142,9 +142,9 @@ public abstract class JettyHttpComponent extends 
HttpCommonComponent
     }
 
     static class ConnectorRef {
-        Server server;
-        Connector connector;
-        CamelServlet servlet;
+        final Server server;
+        final Connector connector;
+        final CamelServlet servlet;
         int refCount;
 
         ConnectorRef(Server server, Connector connector, CamelServlet servlet) 
{
diff --git 
a/components/camel-jetty/src/main/java/org/apache/camel/component/jetty11/CamelInputStreamContentProvider.java
 
b/components/camel-jetty/src/main/java/org/apache/camel/component/jetty11/CamelInputStreamContentProvider.java
index 9f00e15d100..9c9cccd854f 100644
--- 
a/components/camel-jetty/src/main/java/org/apache/camel/component/jetty11/CamelInputStreamContentProvider.java
+++ 
b/components/camel-jetty/src/main/java/org/apache/camel/component/jetty11/CamelInputStreamContentProvider.java
@@ -22,7 +22,7 @@ import 
org.eclipse.jetty.client.util.InputStreamContentProvider;
 
 public class CamelInputStreamContentProvider extends 
InputStreamContentProvider {
 
-    private int length;
+    private final int length;
 
     public CamelInputStreamContentProvider(InputStream stream, int length) {
         super(stream);
diff --git 
a/components/camel-jetty/src/main/java/org/apache/camel/component/jetty11/JettyHttpComponent11.java
 
b/components/camel-jetty/src/main/java/org/apache/camel/component/jetty11/JettyHttpComponent11.java
index e3b6a0c5d66..31dbf1a63a6 100644
--- 
a/components/camel-jetty/src/main/java/org/apache/camel/component/jetty11/JettyHttpComponent11.java
+++ 
b/components/camel-jetty/src/main/java/org/apache/camel/component/jetty11/JettyHttpComponent11.java
@@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory;
 @Component("jetty")
 public class JettyHttpComponent11 extends JettyHttpComponent {
 
-    public static Map<String, Throwable> connectorCreation = new 
ConcurrentHashMap<>();
+    public static final Map<String, Throwable> connectorCreation = new 
ConcurrentHashMap<>();
 
     private static final Logger LOG = 
LoggerFactory.getLogger(JettyHttpComponent11.class);
 
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java
index 59b5cd438eb..8d4cb913eb4 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java
@@ -33,7 +33,7 @@ public abstract class BaseJettyTest extends CamelTestSupport {
 
     public static final String SSL_SYSPROPS = "SslSystemProperties";
 
-    static CopyOnWriteArrayList<String> runningTests = new 
CopyOnWriteArrayList<>();
+    static final CopyOnWriteArrayList<String> runningTests = new 
CopyOnWriteArrayList<>();
 
     @RegisterExtension
     protected AvailablePortFinder.Port port1 = AvailablePortFinder.find();
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ConvertPayloadToInputStreamTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ConvertPayloadToInputStreamTest.java
index 8403a6849c6..9569c5777ea 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ConvertPayloadToInputStreamTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ConvertPayloadToInputStreamTest.java
@@ -29,7 +29,7 @@ import static 
org.apache.camel.test.junit5.TestSupport.assertIsInstanceOf;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class ConvertPayloadToInputStreamTest extends BaseJettyTest {
-    protected String expectedBody = "<hello>world!</hello>";
+    protected final String expectedBody = "<hello>world!</hello>";
 
     @Test
     public void testConvertPayloadToInputStream() throws Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExcludeCipherSuitesTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExcludeCipherSuitesTest.java
index 0da18dd15fe..78aeed96a72 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExcludeCipherSuitesTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ExcludeCipherSuitesTest.java
@@ -28,7 +28,7 @@ import org.junit.jupiter.api.Test;
 @Disabled
 public class ExcludeCipherSuitesTest extends BaseJettyTest {
 
-    protected String pwd = "changeit";
+    protected final String pwd = "changeit";
 
     private SSLContextParameters createSslContextParameters() {
         KeyStoreParameters ksp = new KeyStoreParameters();
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HandlerTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HandlerTest.java
index f1bfca981d5..d5bed44aa7f 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HandlerTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HandlerTest.java
@@ -32,13 +32,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 
 public class HandlerTest extends BaseJettyTest {
     @BindToRegistry("statisticsHandler1")
-    private StatisticsHandler statisticsHandler1 = new StatisticsHandler();
+    private final StatisticsHandler statisticsHandler1 = new 
StatisticsHandler();
     @BindToRegistry("statisticsHandler2")
-    private StatisticsHandler statisticsHandler2 = new StatisticsHandler();
+    private final StatisticsHandler statisticsHandler2 = new 
StatisticsHandler();
     @BindToRegistry("statisticsHandler3")
-    private StatisticsHandler statisticsHandler3 = new StatisticsHandler();
+    private final StatisticsHandler statisticsHandler3 = new 
StatisticsHandler();
 
-    private String htmlResponse = "<html><body>Book 123 is Camel in 
Action</body></html>";
+    private final String htmlResponse = "<html><body>Book 123 is Camel in 
Action</body></html>";
 
     @Test
     public void testWithOneHandler() throws Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerConnectionCloseTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerConnectionCloseTest.java
index a8b57d4c1c6..aa18c28d452 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerConnectionCloseTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerConnectionCloseTest.java
@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class HttpProducerConnectionCloseTest extends BaseJettyTest {
 
-    private String url = "http://127.0.0.1:"; + getPort() + "/cheese";
+    private final String url = "http://127.0.0.1:"; + getPort() + "/cheese";
 
     @Test
     public void testConnectionCloseHeader() {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerQueryParamTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerQueryParamTest.java
index c054c719628..49f8bda8b20 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerQueryParamTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerQueryParamTest.java
@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class HttpProducerQueryParamTest extends BaseJettyTest {
 
-    private String url = "http://127.0.0.1:"; + getPort() + "/cheese";
+    private final String url = "http://127.0.0.1:"; + getPort() + "/cheese";
 
     @Test
     public void testQueryParameters() {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProxyRouteTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProxyRouteTest.java
index e6d424d7121..a1552e77aa3 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProxyRouteTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProxyRouteTest.java
@@ -32,7 +32,7 @@ public class HttpProxyRouteTest extends BaseJettyTest {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(HttpProxyRouteTest.class);
 
-    private int size = 10;
+    private final int size = 10;
 
     @Test
     public void testHttpProxy() {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRouteTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRouteTest.java
index 3985076c353..15aa3e2f8ec 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRouteTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRouteTest.java
@@ -57,7 +57,7 @@ public class HttpRouteTest extends BaseJettyTest {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(HttpRouteTest.class);
 
-    protected String expectedBody = "<hello>world!</hello>";
+    protected final String expectedBody = "<hello>world!</hello>";
 
     @RegisterExtension
     protected AvailablePortFinder.Port port3 = AvailablePortFinder.find();
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileIssueTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileIssueTest.java
index 8b6c01248d7..8aec2c12a07 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileIssueTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileIssueTest.java
@@ -33,7 +33,7 @@ public class HttpStreamCacheFileIssueTest extends 
BaseJettyTest {
     @TempDir
     File testDirectory;
 
-    private String body = "12345678901234567890123456789012345678901234567890";
+    private final String body = 
"12345678901234567890123456789012345678901234567890";
 
     @Test
     public void testStreamCacheToFileShouldBeDeletedInCaseOfStop() throws 
Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
index 2a880d2d8d0..cd6bdfec933 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileResponseTest.java
@@ -32,8 +32,8 @@ public class HttpStreamCacheFileResponseTest extends 
BaseJettyTest {
     @TempDir
     File testDirectory;
 
-    private String body = "12345678901234567890123456789012345678901234567890";
-    private String body2 = "Bye " + body;
+    private final String body = 
"12345678901234567890123456789012345678901234567890";
+    private final String body2 = "Bye " + body;
 
     @Test
     public void testStreamCacheToFileShouldBeDeletedInCaseOfResponse() {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileStopIssueTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileStopIssueTest.java
index e7e1f815598..5a939fd14eb 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileStopIssueTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpStreamCacheFileStopIssueTest.java
@@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class HttpStreamCacheFileStopIssueTest extends BaseJettyTest {
 
-    private String body = "12345678901234567890123456789012345678901234567890";
+    private final String body = 
"12345678901234567890123456789012345678901234567890";
 
     @Override
     @BeforeEach
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpsRouteTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpsRouteTest.java
index 0cf55e3dc09..26883ba31cc 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpsRouteTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpsRouteTest.java
@@ -62,9 +62,9 @@ public class HttpsRouteTest extends BaseJettyTest {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(HttpsRouteTest.class);
 
-    protected String expectedBody = "<hello>world!</hello>";
-    protected String pwd = "changeit";
-    protected Properties originalValues = new Properties();
+    protected final String expectedBody = "<hello>world!</hello>";
+    protected final String pwd = "changeit";
+    protected final Properties originalValues = new Properties();
 
     public String getHttpProducerScheme() {
         return "https://";;
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/InterfacesTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/InterfacesTest.java
index 38d8569e70d..002f162d8dd 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/InterfacesTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/InterfacesTest.java
@@ -35,7 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 @DisabledIfSystemProperty(named = "ci.env.name", matches = "apache.org", 
disabledReason = "Slow test")
 public class InterfacesTest extends BaseJettyTest {
 
-    private static boolean isMacOS = 
System.getProperty("os.name").startsWith("Mac");
+    private static final boolean isMacOS = 
System.getProperty("os.name").startsWith("Mac");
 
     @RegisterExtension
     protected AvailablePortFinder.Port port3 = AvailablePortFinder.find();
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java
index 058da74c515..1355199c3dc 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java
@@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test;
  */
 public class JettyContentBasedRouteTest extends BaseJettyTest {
 
-    private String serverUri = "http://localhost:"; + getPort() + "/myservice";
+    private final String serverUri = "http://localhost:"; + getPort() + 
"/myservice";
 
     @Test
     public void testSendOne() throws Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpEndpointDisconnectTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpEndpointDisconnectTest.java
index 319ea1da8eb..4eeb2c09e3e 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpEndpointDisconnectTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpEndpointDisconnectTest.java
@@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 @Isolated
 public class JettyHttpEndpointDisconnectTest extends BaseJettyTest {
 
-    private String serverUri = "http://localhost:"; + getPort() + "/myservice";
+    private final String serverUri = "http://localhost:"; + getPort() + 
"/myservice";
 
     @Test
     public void testContextShutdownRemovesHttpConnector() {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpGetWithParamAsExchangeHeaderTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpGetWithParamAsExchangeHeaderTest.java
index 97f8e124b90..20cb6e0e6f2 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpGetWithParamAsExchangeHeaderTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpGetWithParamAsExchangeHeaderTest.java
@@ -27,7 +27,7 @@ import org.junit.jupiter.api.Test;
  */
 public class JettyHttpGetWithParamAsExchangeHeaderTest extends BaseJettyTest {
 
-    private String serverUri = "http://localhost:"; + getPort() + "/myservice";
+    private final String serverUri = "http://localhost:"; + getPort() + 
"/myservice";
 
     @Test
     public void testHttpGetWithParamsViaURI() throws Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpGetWithParamTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpGetWithParamTest.java
index 73c0ef36480..37bff7b9a7b 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpGetWithParamTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpGetWithParamTest.java
@@ -31,8 +31,8 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
  */
 public class JettyHttpGetWithParamTest extends BaseJettyTest {
 
-    private String serverUri = "http://localhost:"; + getPort() + "/myservice";
-    private MyParamsProcessor processor = new MyParamsProcessor();
+    private final String serverUri = "http://localhost:"; + getPort() + 
"/myservice";
+    private final MyParamsProcessor processor = new MyParamsProcessor();
 
     @Test
     public void testHttpGetWithParamsViaURI() throws Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpMapHttpMessageHeadersTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpMapHttpMessageHeadersTest.java
index a4332eee0be..c00398d4375 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpMapHttpMessageHeadersTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpMapHttpMessageHeadersTest.java
@@ -23,8 +23,8 @@ import org.junit.jupiter.api.Test;
 
 public class JettyHttpMapHttpMessageHeadersTest extends BaseJettyTest {
 
-    private String serverUriFiltered = "http://localhost:"; + getPort() + 
"/myservice";
-    private String serverUriNotFiltered = "http://localhost:"; + getPort() + 
"/myservice1";
+    private final String serverUriFiltered = "http://localhost:"; + getPort() + 
"/myservice";
+    private final String serverUriNotFiltered = "http://localhost:"; + 
getPort() + "/myservice1";
 
     @Test
     public void testHttpGetWithParamsViaURIFiltered() throws Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySteveIssueTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySteveIssueTest.java
index ae4e14c6b69..2a3cf01facf 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySteveIssueTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySteveIssueTest.java
@@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test;
  */
 public class JettySteveIssueTest extends BaseJettyTest {
 
-    private String serverUri = "http://localhost:"; + getPort() + "/myservice";
+    private final String serverUri = "http://localhost:"; + getPort() + 
"/myservice";
 
     @Test
     public void testSendX() throws Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendResumeTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendResumeTest.java
index 778da23465c..8cfa99e0e8d 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendResumeTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendResumeTest.java
@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.fail;
 
 public class JettySuspendResumeTest extends BaseJettyTest {
 
-    private String serverUri = "http://localhost:"; + getPort() + "/cool";
+    private final String serverUri = "http://localhost:"; + getPort() + "/cool";
 
     @Test
     public void testJettySuspendResume() {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendTest.java
index eee9077d694..917f2d8bfe6 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendTest.java
@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.fail;
 
 public class JettySuspendTest extends BaseJettyTest {
 
-    private String serverUri = "http://localhost:"; + getPort() + "/cool";
+    private final String serverUri = "http://localhost:"; + getPort() + "/cool";
 
     @Test
     public void testJettySuspend() {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java
index 609ef6fee62..a0b99bfa44c 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java
@@ -37,8 +37,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
 public class JettySuspendWhileInProgressTest extends BaseJettyTest {
     private static final Logger LOG = 
LoggerFactory.getLogger(JettySuspendWhileInProgressTest.class);
 
-    private String serverUri = "http://localhost:"; + getPort() + "/cool";
-    private CountDownLatch latch = new CountDownLatch(1);
+    private final String serverUri = "http://localhost:"; + getPort() + "/cool";
+    private final CountDownLatch latch = new CountDownLatch(1);
 
     @Test
     public void testJettySuspendWhileInProgress() throws Exception {
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MainHttpsRouteTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MainHttpsRouteTest.java
index b2926431781..6f906dc032b 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MainHttpsRouteTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/MainHttpsRouteTest.java
@@ -46,7 +46,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 public class MainHttpsRouteTest extends BaseJettyTest {
 
     public static final String NULL_VALUE_MARKER = 
CamelTestSupport.class.getCanonicalName();
-    protected Properties originalValues = new Properties();
+    protected final Properties originalValues = new Properties();
 
     @Override
     @BeforeEach
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringHttpsRouteTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringHttpsRouteTest.java
index 3319fc84403..8b0383356f7 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringHttpsRouteTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/SpringHttpsRouteTest.java
@@ -53,10 +53,10 @@ import static org.junit.jupiter.api.Assertions.fail;
 @Isolated
 public class SpringHttpsRouteTest {
     private static final String NULL_VALUE_MARKER = 
CamelTestSupport.class.getCanonicalName();
-    protected String expectedBody = "<hello>world!</hello>";
+    protected final String expectedBody = "<hello>world!</hello>";
     protected String pwd = "changeit";
-    protected Properties originalValues = new Properties();
-    protected transient Logger log = 
LoggerFactory.getLogger(SpringHttpsRouteTest.class);
+    protected final Properties originalValues = new Properties();
+    protected final transient Logger log = 
LoggerFactory.getLogger(SpringHttpsRouteTest.class);
 
     @EndpointInject("mock:a")
     MockEndpoint mockEndpoint;
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
index be4d46655a8..769df4d286c 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
@@ -26,7 +26,7 @@ import org.apache.camel.component.jetty.JettyRestHttpBinding;
 
 public class MyCustomHttpBinding extends JettyRestHttpBinding {
 
-    private String greeting;
+    private final String greeting;
 
     public MyCustomHttpBinding(String greeting) {
         this.greeting = greeting;
diff --git 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerBootstrapFactory.java
 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerBootstrapFactory.java
index 6febbec486c..0348ef80694 100644
--- 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerBootstrapFactory.java
+++ 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/HttpServerBootstrapFactory.java
@@ -31,7 +31,7 @@ public class HttpServerBootstrapFactory extends 
SingleTCPNettyServerBootstrapFac
     private final HttpServerConsumerChannelFactory channelFactory;
     private int port;
     private NettyServerBootstrapConfiguration bootstrapConfiguration;
-    private boolean compatibleCheck;
+    private final boolean compatibleCheck;
 
     public HttpServerBootstrapFactory(HttpServerConsumerChannelFactory 
channelFactory) {
         this(channelFactory, true);
diff --git 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/InboundStreamHttpRequest.java
 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/InboundStreamHttpRequest.java
index 5ef80a218ad..11310caed23 100644
--- 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/InboundStreamHttpRequest.java
+++ 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/InboundStreamHttpRequest.java
@@ -22,8 +22,8 @@ import java.io.InputStream;
 import io.netty.handler.codec.http.HttpRequest;
 
 public class InboundStreamHttpRequest {
-    private HttpRequest request;
-    private InputStream in;
+    private final HttpRequest request;
+    private final InputStream in;
 
     public InboundStreamHttpRequest(HttpRequest request, InputStream in) {
         this.request = request;
diff --git 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/InboundStreamHttpResponse.java
 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/InboundStreamHttpResponse.java
index 476f59ce7c0..852b4f540e1 100644
--- 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/InboundStreamHttpResponse.java
+++ 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/InboundStreamHttpResponse.java
@@ -22,8 +22,8 @@ import java.io.InputStream;
 import io.netty.handler.codec.http.HttpResponse;
 
 public class InboundStreamHttpResponse {
-    private HttpResponse response;
-    private InputStream in;
+    private final HttpResponse response;
+    private final InputStream in;
 
     public InboundStreamHttpResponse(HttpResponse response, InputStream in) {
         this.response = response;
diff --git 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/OutboundStreamHttpRequest.java
 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/OutboundStreamHttpRequest.java
index fc4fbcb5822..29174cfcb44 100644
--- 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/OutboundStreamHttpRequest.java
+++ 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/OutboundStreamHttpRequest.java
@@ -27,7 +27,7 @@ import io.netty.handler.stream.ChunkedInput;
 import io.netty.handler.stream.ChunkedStream;
 
 public class OutboundStreamHttpRequest extends DefaultHttpRequest implements 
ChunkedInput<HttpContent> {
-    private HttpChunkedInput input;
+    private final HttpChunkedInput input;
 
     public OutboundStreamHttpRequest(InputStream in, DefaultHttpRequest 
request) {
         super(request.protocolVersion(), request.method(), request.uri());
diff --git 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/OutboundStreamHttpResponse.java
 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/OutboundStreamHttpResponse.java
index 967e0d0a660..d3b5b57a88a 100644
--- 
a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/OutboundStreamHttpResponse.java
+++ 
b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/OutboundStreamHttpResponse.java
@@ -28,7 +28,7 @@ import io.netty.handler.stream.ChunkedInput;
 import io.netty.handler.stream.ChunkedStream;
 
 public class OutboundStreamHttpResponse extends DefaultHttpResponse implements 
ChunkedInput<HttpContent> {
-    private HttpChunkedInput input;
+    private final HttpChunkedInput input;
 
     public OutboundStreamHttpResponse(InputStream in, DefaultHttpResponse 
response) {
         super(response.protocolVersion(), response.status());
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBridgeEncodedPathTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBridgeEncodedPathTest.java
index 09326916e38..54c15b466a8 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBridgeEncodedPathTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBridgeEncodedPathTest.java
@@ -35,7 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class NettyHttpBridgeEncodedPathTest extends BaseNettyTest {
 
-    AvailablePortFinder.Port port1 = port;
+    final AvailablePortFinder.Port port1 = port;
     @RegisterExtension
     AvailablePortFinder.Port port2 = AvailablePortFinder.find();
     @RegisterExtension
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBridgeRouteUsingHttpClientTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBridgeRouteUsingHttpClientTest.java
index 58043b63cb1..579a900edc3 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBridgeRouteUsingHttpClientTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpBridgeRouteUsingHttpClientTest.java
@@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
 
 public class NettyHttpBridgeRouteUsingHttpClientTest extends BaseNettyTest {
 
-    AvailablePortFinder.Port port1 = port;
+    final AvailablePortFinder.Port port1 = port;
     @RegisterExtension
     AvailablePortFinder.Port port2 = AvailablePortFinder.find();
 
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpConvertPayloadToInputStreamTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpConvertPayloadToInputStreamTest.java
index 38b59d22c45..9cf8f5e16c3 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpConvertPayloadToInputStreamTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpConvertPayloadToInputStreamTest.java
@@ -30,7 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class NettyHttpConvertPayloadToInputStreamTest extends BaseNettyTest {
 
-    protected String expectedBody = "<hello>world!</hello>";
+    protected final String expectedBody = "<hello>world!</hello>";
 
     @Test
     public void testConvertPayloadToInputStream() throws Exception {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpCustomOptionsTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpCustomOptionsTest.java
index c3ec16d6dc6..f756f68bee5 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpCustomOptionsTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpCustomOptionsTest.java
@@ -24,7 +24,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 
 public class NettyHttpCustomOptionsTest extends BaseNettyTest {
 
-    String expectedResponse = "response";
+    final String expectedResponse = "response";
 
     @Test
     public void shouldReturnCustomResponseForOptions() {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithInvalidMessageTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithInvalidMessageTest.java
index b030b7421bc..c130cfad277 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithInvalidMessageTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithInvalidMessageTest.java
@@ -40,10 +40,10 @@ public class NettyHttpGetWithInvalidMessageTest extends 
CamelTestSupport {
     private int port1;
 
     @BindToRegistry("string-decoder")
-    private StringDecoder stringDecoder = new StringDecoder();
+    private final StringDecoder stringDecoder = new StringDecoder();
 
     @BindToRegistry("string-encoder")
-    private StringEncoder stringEncoder = new StringEncoder();
+    private final StringEncoder stringEncoder = new StringEncoder();
 
     @BindToRegistry("encoders")
     public List<ChannelHandler> addEncoders() {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithParamAsExchangeHeaderTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithParamAsExchangeHeaderTest.java
index cbeea0ad1cb..98d6a34165a 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithParamAsExchangeHeaderTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithParamAsExchangeHeaderTest.java
@@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
 
 public class NettyHttpGetWithParamAsExchangeHeaderTest extends BaseNettyTest {
 
-    private String serverUri = "netty-http:http://localhost:"; + getPort() + 
"/myservice?urlDecodeHeaders=true";
+    private final String serverUri = "netty-http:http://localhost:"; + 
getPort() + "/myservice?urlDecodeHeaders=true";
 
     @Test
     public void testHttpGetWithParamsViaURI() throws Exception {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithParamTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithParamTest.java
index 26a595dc598..a18694b1d2e 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithParamTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpGetWithParamTest.java
@@ -27,8 +27,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class NettyHttpGetWithParamTest extends BaseNettyTest {
 
-    private String serverUri = "netty-http:http://localhost:"; + getPort() + 
"/myservice";
-    private MyParamsProcessor processor = new MyParamsProcessor();
+    private final String serverUri = "netty-http:http://localhost:"; + 
getPort() + "/myservice";
+    private final MyParamsProcessor processor = new MyParamsProcessor();
 
     @Test
     public void testHttpGetWithParamsViaURI() throws Exception {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpHeaderFilterStrategyRemovalTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpHeaderFilterStrategyRemovalTest.java
index eb090d2174f..908abc5704a 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpHeaderFilterStrategyRemovalTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpHeaderFilterStrategyRemovalTest.java
@@ -27,7 +27,7 @@ import static org.apache.camel.Exchange.HTTP_QUERY;
 
 public class NettyHttpHeaderFilterStrategyRemovalTest extends BaseNettyTest {
 
-    @BindToRegistry("headerFilterStrategy")
+    @BindToRegistry("headerFilterStrategy") final
     NettyHttpHeaderFilterStrategy headerFilterStrategy = new 
NettyHttpHeaderFilterStrategy();
 
     @EndpointInject("mock:test")
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerBridgeTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerBridgeTest.java
index 26095a225ff..9fbd3ef35ca 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerBridgeTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerBridgeTest.java
@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 
 public class NettyHttpProducerBridgeTest extends BaseNettyTest {
 
-    AvailablePortFinder.Port port1 = port;
+    final AvailablePortFinder.Port port1 = port;
     @RegisterExtension
     AvailablePortFinder.Port port2 = AvailablePortFinder.find();
     @RegisterExtension
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerQueryParamTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerQueryParamTest.java
index d649ef1279f..fe1ba05dac2 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerQueryParamTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerQueryParamTest.java
@@ -27,7 +27,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class NettyHttpProducerQueryParamTest extends BaseNettyTest {
 
-    private String url = "netty-http:http://localhost:"; + getPort() + 
"/cheese?urlDecodeHeaders=true";
+    private final String url = "netty-http:http://localhost:"; + getPort() + 
"/cheese?urlDecodeHeaders=true";
 
     @Test
     public void testQueryParameters() {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSSLTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSSLTest.java
index 890d464b728..3a4bd1a0c42 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSSLTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSSLTest.java
@@ -38,7 +38,7 @@ public class NettyHttpSSLTest extends BaseNettyTest {
 
     private static final String NULL_VALUE_MARKER = 
CamelTestSupport.class.getCanonicalName();
 
-    protected Properties originalValues = new Properties();
+    protected final Properties originalValues = new Properties();
 
     @Override
     @BeforeEach
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpStreamCacheFileResponseTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpStreamCacheFileResponseTest.java
index 96057b1599e..005ca6bd37c 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpStreamCacheFileResponseTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpStreamCacheFileResponseTest.java
@@ -33,8 +33,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class NettyHttpStreamCacheFileResponseTest extends BaseNettyTest {
 
-    private String body = "12345678901234567890123456789012345678901234567890";
-    private String body2 = "Bye " + body;
+    private final String body = 
"12345678901234567890123456789012345678901234567890";
+    private final String body2 = "Bye " + body;
 
     @Override
     @BeforeEach
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpStreamTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpStreamTest.java
index fafe0026361..dfada687d72 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpStreamTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpStreamTest.java
@@ -134,9 +134,9 @@ final class Helper {
 }
 
 class StreamWriter extends Thread {
-    private PipedOutputStream pos;
-    private long limit;
-    private byte[] content = "hello world stream".getBytes();
+    private final PipedOutputStream pos;
+    private final long limit;
+    private final byte[] content = "hello world stream".getBytes();
 
     public StreamWriter(PipedOutputStream pos, long limit) {
         this.pos = pos;
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSuspendResume503Test.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSuspendResume503Test.java
index d76dc071689..1dcf09f6eed 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSuspendResume503Test.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSuspendResume503Test.java
@@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.fail;
 @DisabledOnOs(OS.WINDOWS)
 public class NettyHttpSuspendResume503Test extends BaseNettyTest {
 
-    private String serverUri = "netty-http:http://localhost:"; + getPort() + 
"/cool?disconnect=true";
+    private final String serverUri = "netty-http:http://localhost:"; + 
getPort() + "/cool?disconnect=true";
 
     @Test
     public void testNettySuspendResume() throws Exception {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSuspendResumeTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSuspendResumeTest.java
index 729c06253b3..29053fce354 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSuspendResumeTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSuspendResumeTest.java
@@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.fail;
 @DisabledOnOs(OS.WINDOWS)
 public class NettyHttpSuspendResumeTest extends BaseNettyTest {
 
-    private String serverUri = "netty-http:http://localhost:"; + getPort() + 
"/cool?disconnect=true&send503whenSuspended=false";
+    private final String serverUri = "netty-http:http://localhost:"; + 
getPort() + "/cool?disconnect=true&send503whenSuspended=false";
 
     @Test
     public void testNettySuspendResume() throws Exception {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestApiMatchUriNettyTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestApiMatchUriNettyTest.java
index c79e2c763e2..04a17ea2563 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestApiMatchUriNettyTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestApiMatchUriNettyTest.java
@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class RestApiMatchUriNettyTest extends BaseNettyTest {
 
-    protected Logger log = 
LoggerFactory.getLogger(RestApiMatchUriNettyTest.class);
+    protected final Logger log = 
LoggerFactory.getLogger(RestApiMatchUriNettyTest.class);
 
     @Test
     public void testApi() {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestApiNettyTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestApiNettyTest.java
index fe53ae1be90..167156ddf81 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestApiNettyTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestApiNettyTest.java
@@ -30,7 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 @Disabled("Does not run well on CI due test uses JMX mbeans")
 public class RestApiNettyTest extends BaseNettyTest {
 
-    protected Logger log = LoggerFactory.getLogger(RestApiNettyTest.class);
+    protected final Logger log = 
LoggerFactory.getLogger(RestApiNettyTest.class);
 
     @Override
     protected boolean useJmx() {
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestPathMatchingTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestPathMatchingTest.java
index 74e22258b9e..05aa3a94e02 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestPathMatchingTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/rest/RestPathMatchingTest.java
@@ -24,7 +24,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class RestPathMatchingTest {
 
-    private RestContextPathMatcher matcher = new RestContextPathMatcher("", 
"", null, true);
+    private final RestContextPathMatcher matcher = new 
RestContextPathMatcher("", "", null, true);
 
     @Test
     public void testRestPathMatcher() {
diff --git 
a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/HttpRequestBodyHandler.java
 
b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/HttpRequestBodyHandler.java
index e537612a518..8e89b1b917f 100644
--- 
a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/HttpRequestBodyHandler.java
+++ 
b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/HttpRequestBodyHandler.java
@@ -26,7 +26,7 @@ import org.apache.camel.Message;
  * Abstraction to handle HTTP request body processing.
  */
 abstract class HttpRequestBodyHandler {
-    Handler<RoutingContext> delegate;
+    final Handler<RoutingContext> delegate;
 
     HttpRequestBodyHandler(Handler<RoutingContext> delegate) {
         this.delegate = delegate;
diff --git 
a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpProxyTest.java
 
b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpProxyTest.java
index d940aef8ac3..b393b4dd7f0 100644
--- 
a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpProxyTest.java
+++ 
b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpProxyTest.java
@@ -37,7 +37,7 @@ import static org.hamcrest.Matchers.containsString;
 
 public class VertxPlatformHttpProxyTest {
     private final int port = AvailablePortFinder.getNextAvailable();
-    private WireMockServer wireMockServer = new 
WireMockServer(options().port(port));
+    private final WireMockServer wireMockServer = new 
WireMockServer(options().port(port));
 
     @BeforeEach
     void before() {
diff --git 
a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpsProxyTest.java
 
b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpsProxyTest.java
index 79053d62d17..b904706c09a 100644
--- 
a/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpsProxyTest.java
+++ 
b/components/camel-platform-http-vertx/src/test/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpsProxyTest.java
@@ -42,7 +42,7 @@ import static org.hamcrest.Matchers.containsString;
 public class VertxPlatformHttpsProxyTest {
 
     private final int port = AvailablePortFinder.getNextAvailable();
-    private WireMockServer wireMockServer = new WireMockServer(
+    private final WireMockServer wireMockServer = new WireMockServer(
             options().httpsPort(port)
                     .httpDisabled(true)
                     .keystorePath("proxy/keystore.p12")
diff --git 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
index ae9eeb0bbc2..d023121e1d9 100644
--- 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
+++ 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java
@@ -452,8 +452,8 @@ public class DefaultUndertowHttpBinding implements 
UndertowHttpBinding {
     }
 
     static class FilePartDataSource extends FileDataSource {
-        private String name;
-        private String contentType;
+        private final String name;
+        private final String contentType;
 
         FilePartDataSource(FormValue value) {
             super(value.getPath().toFile());
diff --git 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowStreamingClientCallback.java
 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowStreamingClientCallback.java
index c71c6cbf5c4..cc864e5c73c 100644
--- 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowStreamingClientCallback.java
+++ 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowStreamingClientCallback.java
@@ -32,7 +32,7 @@ import org.xnio.channels.StreamSinkChannel;
 
 class UndertowStreamingClientCallback extends UndertowClientCallback {
 
-    private InputStream bodyStream;
+    private final InputStream bodyStream;
 
     UndertowStreamingClientCallback(Exchange exchange, AsyncCallback callback,
                                     UndertowEndpoint endpoint, ClientRequest 
request,
diff --git 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelPathHandler.java
 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelPathHandler.java
index c05a2b6ff62..52c9d4c71fe 100644
--- 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelPathHandler.java
+++ 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelPathHandler.java
@@ -26,7 +26,7 @@ import io.undertow.server.handlers.PathHandler;
  * Extended PathHandler to monitor add/remove handlers.
  */
 public class CamelPathHandler extends PathHandler {
-    private Map<String, HttpHandler> handlers = new HashMap<>();
+    private final Map<String, HttpHandler> handlers = new HashMap<>();
     private String handlerString;
 
     public CamelPathHandler(HttpHandler defaultHandler) {
diff --git 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelPathTemplateHandler.java
 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelPathTemplateHandler.java
index 6922403c4a5..cf0b8d40e49 100644
--- 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelPathTemplateHandler.java
+++ 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelPathTemplateHandler.java
@@ -27,9 +27,9 @@ import io.undertow.server.handlers.PathTemplateHandler;
  * Extended PathTemplateHandler to monitor add/remove handlers. Also this 
enables hot swapping a default handler.
  */
 public class CamelPathTemplateHandler implements HttpHandler {
-    private Map<String, CamelMethodHandler> handlers = new HashMap<>();
-    private Wrapper defaultHandlerWrapper = new Wrapper();
-    private PathTemplateHandler delegate;
+    private final Map<String, CamelMethodHandler> handlers = new HashMap<>();
+    private final Wrapper defaultHandlerWrapper = new Wrapper();
+    private final PathTemplateHandler delegate;
     private String handlerString;
 
     public CamelPathTemplateHandler(CamelMethodHandler defaultHandler) {
diff --git 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelRootHandler.java
 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelRootHandler.java
index 44a70b7f037..af0dc3abeff 100644
--- 
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelRootHandler.java
+++ 
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/handlers/CamelRootHandler.java
@@ -27,7 +27,7 @@ import io.undertow.util.URLUtils;
  * @see RestRootHandler
  */
 public class CamelRootHandler implements HttpHandler {
-    private CamelPathHandler pathHandler;
+    private final CamelPathHandler pathHandler;
 
     public CamelRootHandler(HttpHandler defaultHandler) {
         pathHandler = new CamelPathHandler(defaultHandler);
diff --git 
a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowHttpStreamCachingTest.java
 
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowHttpStreamCachingTest.java
index a554932c53e..c28f85bc921 100644
--- 
a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowHttpStreamCachingTest.java
+++ 
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowHttpStreamCachingTest.java
@@ -25,7 +25,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 
 public class UndertowHttpStreamCachingTest extends BaseUndertowTest {
 
-    private String data = "abcdefg";
+    private final String data = "abcdefg";
 
     @Test
     public void testTwoWayStreaming() {
diff --git 
a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowProducerTest.java
 
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowProducerTest.java
index 82f0a0be179..20b3602c993 100644
--- 
a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowProducerTest.java
+++ 
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowProducerTest.java
@@ -99,7 +99,7 @@ public class UndertowProducerTest extends BaseUndertowTest {
     @Override
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
-            private InputStream is = new ByteArrayInputStream("This is the 
InputStream".getBytes());
+            private final InputStream is = new ByteArrayInputStream("This is 
the InputStream".getBytes());
 
             @Override
             public void configure() {
diff --git 
a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowSuspendResumeTest.java
 
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowSuspendResumeTest.java
index 09af0684cb7..fd39bde0c78 100644
--- 
a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowSuspendResumeTest.java
+++ 
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowSuspendResumeTest.java
@@ -27,7 +27,7 @@ import static org.junit.jupiter.api.Assertions.fail;
 
 public class UndertowSuspendResumeTest extends BaseUndertowTest {
 
-    private String serverUri = "http://localhost:{{port}}/foo";;
+    private final String serverUri = "http://localhost:{{port}}/foo";;
 
     @Test
     public void testSuspendResume() {
diff --git 
a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/cloud/UndertowServiceCallRouteTest.java
 
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/cloud/UndertowServiceCallRouteTest.java
index 144052adbb4..f6ca37817d6 100644
--- 
a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/cloud/UndertowServiceCallRouteTest.java
+++ 
b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/cloud/UndertowServiceCallRouteTest.java
@@ -32,8 +32,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class UndertowServiceCallRouteTest extends CamelTestSupport {
-    private int port1 = AvailablePortFinder.getNextAvailable();
-    private int port2 = AvailablePortFinder.getNextAvailable();
+    private final int port1 = AvailablePortFinder.getNextAvailable();
+    private final int port2 = AvailablePortFinder.getNextAvailable();
 
     @Override
     protected CamelContext createCamelContext() throws Exception {
diff --git 
a/components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/VertxHttpEndpoint.java
 
b/components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/VertxHttpEndpoint.java
index 5fa4f738435..8d7170915b2 100644
--- 
a/components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/VertxHttpEndpoint.java
+++ 
b/components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/VertxHttpEndpoint.java
@@ -41,7 +41,7 @@ import org.apache.camel.util.StringHelper;
 public class VertxHttpEndpoint extends DefaultEndpoint {
 
     @UriParam
-    private VertxHttpConfiguration configuration;
+    private final VertxHttpConfiguration configuration;
 
     private WebClient webClient;
     private int minOkRange;
diff --git 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpProxyServerTest.java
 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpProxyServerTest.java
index 30e7f9d3c9a..2583178994f 100644
--- 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpProxyServerTest.java
+++ 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpProxyServerTest.java
@@ -26,7 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 
 public class VertxHttpProxyServerTest extends VertxHttpTestSupport {
 
-    private int port2 = AvailablePortFinder.getNextAvailable();
+    private final int port2 = AvailablePortFinder.getNextAvailable();
 
     @Test
     public void testProxyConfiguration() {
diff --git 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSessionTest.java
 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSessionTest.java
index eb46b1b5650..33f049c63c4 100644
--- 
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSessionTest.java
+++ 
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSessionTest.java
@@ -43,7 +43,7 @@ public class VertxHttpSessionTest extends 
VertxHttpTestSupport {
     private CookieStore cookieStore = CookieStore.build();
 
     @BindToRegistry("customCookieStore")
-    private CookieStore customCookieStore = new CustomCookieStore();
+    private final CookieStore customCookieStore = new CustomCookieStore();
 
     @Test
     public void testSessionSupport() {

Reply via email to