This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new aff3da1b499 CAMEL-20524: Fix compile on java 17
aff3da1b499 is described below
commit aff3da1b499c1d51f02765bb7418ff7ed68dd7f1
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Mar 20 11:35:21 2024 +0100
CAMEL-20524: Fix compile on java 17
---
.../apache/camel/springboot/maven/SpringBootConfigGeneratorMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/tooling/camel-spring-boot-config-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/SpringBootConfigGeneratorMojo.java
b/tooling/camel-spring-boot-config-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/SpringBootConfigGeneratorMojo.java
index 489ca4519fb..c002a17cc05 100644
---
a/tooling/camel-spring-boot-config-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/SpringBootConfigGeneratorMojo.java
+++
b/tooling/camel-spring-boot-config-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/SpringBootConfigGeneratorMojo.java
@@ -82,7 +82,7 @@ public class SpringBootConfigGeneratorMojo extends
AbstractMojo {
String name = mth.getName().substring(3);
String fieldName = name.substring(0,
1).toLowerCase(Locale.ROOT) + name.substring(1);
String propName = camelCaseToDash(name);
- String javaType =
mth.getParameters().getFirst().getType().getQualifiedName();
+ String javaType =
mth.getParameters().get(0).getType().getQualifiedName();
String defaultValue = null;
Field<JavaClassSource> field =
inputClass.getField(fieldName);
if (field != null && field.getLiteralInitializer() !=
null) {