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 d29a37ee362 (chores) camel-main: removed redundant casts (#12218)
d29a37ee362 is described below

commit d29a37ee3629e6a6933a53fc672b38869673e35d
Author: Otavio Rodolfo Piske <orpi...@users.noreply.github.com>
AuthorDate: Mon Nov 27 16:56:19 2023 +0100

    (chores) camel-main: removed redundant casts (#12218)
---
 .../main/DebuggerConfigurationProperties.java      | 24 +++++++++++-----------
 .../camel/main/SSLConfigurationProperties.java     | 12 +++++------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/DebuggerConfigurationProperties.java
 
b/core/camel-main/src/main/java/org/apache/camel/main/DebuggerConfigurationProperties.java
index db62f28227b..684e53d68bc 100644
--- 
a/core/camel-main/src/main/java/org/apache/camel/main/DebuggerConfigurationProperties.java
+++ 
b/core/camel-main/src/main/java/org/apache/camel/main/DebuggerConfigurationProperties.java
@@ -213,7 +213,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withEnabled(boolean enabled) {
         this.enabled = enabled;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -222,7 +222,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withStandby(boolean standby) {
         this.standby = standby;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -231,7 +231,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withWaitForAttach(boolean 
waitForAttach) {
         this.waitForAttach = waitForAttach;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -239,7 +239,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withLoggingLevel(LoggingLevel 
loggingLevel) {
         this.loggingLevel = loggingLevel;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -249,7 +249,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withBreakpoints(String breakpoints) 
{
         this.breakpoints = breakpoints;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -259,7 +259,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties 
withSingleStepIncludeStartEnd(boolean singleStepIncludeStartEnd) {
         this.singleStepIncludeStartEnd = singleStepIncludeStartEnd;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -267,7 +267,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withBodyMaxChars(int bodyMaxChars) {
         this.bodyMaxChars = bodyMaxChars;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -276,7 +276,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withBodyIncludeStreams(boolean 
bodyIncludeStreams) {
         this.bodyIncludeStreams = bodyIncludeStreams;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -285,7 +285,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withBodyIncludeFiles(boolean 
bodyIncludeFiles) {
         this.bodyIncludeFiles = bodyIncludeFiles;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -293,7 +293,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties 
withIncludeExchangeProperties(boolean includeExchangeProperties) {
         this.includeExchangeProperties = includeExchangeProperties;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -301,7 +301,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withIncludeException(boolean 
includeException) {
         this.includeException = includeException;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -310,7 +310,7 @@ public class DebuggerConfigurationProperties implements 
BootstrapCloseable {
      */
     public DebuggerConfigurationProperties withFallbackTimeout(long 
fallbackTimeout) {
         this.fallbackTimeout = fallbackTimeout;
-        return (DebuggerConfigurationProperties) this;
+        return this;
     }
 
 }
diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/SSLConfigurationProperties.java
 
b/core/camel-main/src/main/java/org/apache/camel/main/SSLConfigurationProperties.java
index d292c99aa46..3792fd54469 100644
--- 
a/core/camel-main/src/main/java/org/apache/camel/main/SSLConfigurationProperties.java
+++ 
b/core/camel-main/src/main/java/org/apache/camel/main/SSLConfigurationProperties.java
@@ -125,7 +125,7 @@ public class SSLConfigurationProperties implements 
BootstrapCloseable {
      */
     public SSLConfigurationProperties withEnabled(boolean enabled) {
         this.enabled = enabled;
-        return (SSLConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -133,7 +133,7 @@ public class SSLConfigurationProperties implements 
BootstrapCloseable {
      */
     public SSLConfigurationProperties withKeyStore(String keyStore) {
         this.keyStore = keyStore;
-        return (SSLConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -141,7 +141,7 @@ public class SSLConfigurationProperties implements 
BootstrapCloseable {
      */
     public SSLConfigurationProperties withKeystorePassword(String 
keystorePassword) {
         this.keystorePassword = keystorePassword;
-        return (SSLConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -149,7 +149,7 @@ public class SSLConfigurationProperties implements 
BootstrapCloseable {
      */
     public SSLConfigurationProperties withTrustStore(String trustStore) {
         this.trustStore = trustStore;
-        return (SSLConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -157,7 +157,7 @@ public class SSLConfigurationProperties implements 
BootstrapCloseable {
      */
     public SSLConfigurationProperties withTrustStorePassword(String 
trustStorePassword) {
         this.trustStorePassword = trustStorePassword;
-        return (SSLConfigurationProperties) this;
+        return this;
     }
 
     /**
@@ -165,7 +165,7 @@ public class SSLConfigurationProperties implements 
BootstrapCloseable {
      */
     public SSLConfigurationProperties withClientAuthentication(String 
clientAuthentication) {
         this.clientAuthentication = clientAuthentication;
-        return (SSLConfigurationProperties) this;
+        return this;
     }
 
 }

Reply via email to