You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/06/16 05:26:32 UTC

[camel] branch main updated (c57aaaaa245 -> e75b091e85a)

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


    from c57aaaaa245 Fix test
     new 8a24231d527 (chores) camel-core-reifier: use final when possible
     new 7dd1f6f3a9d (chores) camel-core-reifier: removed unused suppression
     new e75b091e85a (chores) camel-core-reifier: simplify optional call

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/org/apache/camel/reifier/ResequenceReifier.java       | 1 -
 .../src/main/java/org/apache/camel/reifier/ResumableReifier.java        | 2 +-
 .../java/org/apache/camel/reifier/errorhandler/ErrorHandlerReifier.java | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)


[camel] 01/03: (chores) camel-core-reifier: use final when possible

Posted by or...@apache.org.
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 8a24231d527d3ece1ba196f9414263d7f99f69d8
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jun 15 18:06:36 2023 +0200

    (chores) camel-core-reifier: use final when possible
---
 .../java/org/apache/camel/reifier/errorhandler/ErrorHandlerReifier.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/errorhandler/ErrorHandlerReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/errorhandler/ErrorHandlerReifier.java
index ec6b3d80297..a92df428005 100644
--- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/errorhandler/ErrorHandlerReifier.java
+++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/errorhandler/ErrorHandlerReifier.java
@@ -52,7 +52,7 @@ public abstract class ErrorHandlerReifier<T extends ErrorHandlerFactory> extends
     private static final Map<Class<?>, BiFunction<Route, ErrorHandlerFactory, ErrorHandlerReifier<? extends ErrorHandlerFactory>>> ERROR_HANDLERS
             = new HashMap<>(0);
 
-    protected T definition;
+    protected final T definition;
 
     /**
      * Utility classes should not have a public constructor.


[camel] 02/03: (chores) camel-core-reifier: removed unused suppression

Posted by or...@apache.org.
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 7dd1f6f3a9df97fae134a111fd31ba98e79db36c
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jun 15 18:08:01 2023 +0200

    (chores) camel-core-reifier: removed unused suppression
---
 .../src/main/java/org/apache/camel/reifier/ResequenceReifier.java        | 1 -
 1 file changed, 1 deletion(-)

diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ResequenceReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ResequenceReifier.java
index bc85e2c9cf8..fa50ae9b27b 100644
--- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ResequenceReifier.java
+++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ResequenceReifier.java
@@ -68,7 +68,6 @@ public class ResequenceReifier extends ProcessorReifier<ResequenceDefinition> {
      * @return           the configured batch resequencer.
      * @throws Exception can be thrown
      */
-    @SuppressWarnings("deprecation")
     protected Resequencer createBatchResequencer(BatchResequencerConfig config) throws Exception {
         Processor processor = this.createChildProcessor(true);
         Expression expression = createExpression(definition.getExpression());


[camel] 03/03: (chores) camel-core-reifier: simplify optional call

Posted by or...@apache.org.
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 e75b091e85a6106533d431187ac7907d1c9bad69
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jun 15 18:09:52 2023 +0200

    (chores) camel-core-reifier: simplify optional call
---
 .../src/main/java/org/apache/camel/reifier/ResumableReifier.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ResumableReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ResumableReifier.java
index 6b4705a3771..43195d50969 100644
--- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ResumableReifier.java
+++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/ResumableReifier.java
@@ -70,7 +70,7 @@ public class ResumableReifier extends ProcessorReifier<ResumableDefinition> {
                 Optional<ResumeStrategy> resumeStrategyOptional = factoryFinder.newInstance(
                         resumeStrategyConfiguration.resumeStrategyService(), ResumeStrategy.class);
 
-                if (!resumeStrategyOptional.isPresent()) {
+                if (resumeStrategyOptional.isEmpty()) {
                     throw new RuntimeCamelException("Cannot find a resume strategy class in the classpath or the registry");
                 }