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 2022/07/05 15:02:12 UTC
[camel] 02/02: (chores) camel-support: removed redundant cast
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 a47b171b1fd566383ed98a0ddc2eb50738a908c9
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jul 5 14:00:47 2022 +0200
(chores) camel-support: removed redundant cast
---
.../src/main/java/org/apache/camel/support/IntrospectionSupport.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java b/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
index 7e1680385f6..474ef8d9d4c 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
@@ -356,8 +356,7 @@ public final class IntrospectionSupport {
ObjectHelper.notNull(properties, "properties");
if (ObjectHelper.isNotEmpty(optionPrefix)) {
- for (Object o : properties.keySet()) {
- String name = (String) o;
+ for (String name: properties.keySet()) {
if (name.startsWith(optionPrefix)) {
return true;
}