From 94cb54a45372c5a92d2ade42c7c1ad1fca05b128 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Wed, 8 Jan 2025 18:46:03 +0100 Subject: [PATCH] Fixes --- .../maven-it-plugin-class-loader/pom.xml | 6 +++--- .../java/org/apache/maven/plugin/coreit/ExpressionUtil.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/its/core-it-support/core-it-plugins/maven-it-plugin-class-loader/maven-it-plugin-class-loader/pom.xml b/its/core-it-support/core-it-plugins/maven-it-plugin-class-loader/maven-it-plugin-class-loader/pom.xml index 7125cb933469..423c417cf6c5 100644 --- a/its/core-it-support/core-it-plugins/maven-it-plugin-class-loader/maven-it-plugin-class-loader/pom.xml +++ b/its/core-it-support/core-it-plugins/maven-it-plugin-class-loader/maven-it-plugin-class-loader/pom.xml @@ -90,10 +90,10 @@ under the License. org.apache.maven.plugins maven-compiler-plugin - 3.10.1 + 3.13.0 - 1.8 - 1.8 + 17 + 17 diff --git a/its/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java b/its/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java index a61e2e284f21..994f3b41d586 100644 --- a/its/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java +++ b/its/core-it-support/core-it-plugins/maven-it-plugin-expression/src/main/java/org/apache/maven/plugin/coreit/ExpressionUtil.java @@ -97,7 +97,7 @@ private static Map evaluate(String prefix, List segments, Object context) { } else if ((context instanceof List list) && Character.isDigit(segment.charAt(0))) { try { int index = Integer.parseInt(segment); - targets = Collections.singletonMap(segment, (list.get(index)); + targets = Collections.singletonMap(segment, list.get(index)); } catch (RuntimeException e) { // invalid index, just ignore }