This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch non in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git
commit 20c3e8907a5fd67111e46c65e22ed0cba87208f7 Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Mon Feb 2 07:15:40 2026 -0600 Combine declaration and initialization --- .../maven/shared/utils/introspection/ReflectionValueExtractor.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractor.java b/src/main/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractor.java index 70d3464..3d365eb 100644 --- a/src/main/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractor.java +++ b/src/main/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractor.java @@ -263,9 +263,8 @@ public class ReflectionValueExtractor { ClassMap classMap = getClassMap(value.getClass()); // use get method on List interface Object[] localParams = new Object[] {index}; - Method method = null; try { - method = classMap.findMethod("get", localParams); + Method method = classMap.findMethod("get", localParams); return method.invoke(value, localParams); } catch (AmbiguousException e) { throw new IntrospectionException(e);
