You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2024/12/06 15:57:17 UTC

(maven-invoker-plugin) 01/01: Fix typo: filed --> field

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

elharo pushed a commit to branch spell
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 05395ab07fad2f4d7640b3bba7f0e201acd7a75c
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Fri Dec 6 10:57:09 2024 -0500

    Fix typo: filed --> field
---
 src/test/java/org/apache/maven/plugins/invoker/AbstractTestUtil.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/invoker/AbstractTestUtil.java b/src/test/java/org/apache/maven/plugins/invoker/AbstractTestUtil.java
index 2a2f791..99a3e85 100644
--- a/src/test/java/org/apache/maven/plugins/invoker/AbstractTestUtil.java
+++ b/src/test/java/org/apache/maven/plugins/invoker/AbstractTestUtil.java
@@ -22,6 +22,7 @@ import java.io.File;
 
 import org.codehaus.plexus.util.ReflectionUtils;
 
+// TODO this should be a static utility class that does not require inheritance
 abstract class AbstractTestUtil {
 
     protected String getBasedir() {
@@ -29,7 +30,7 @@ abstract class AbstractTestUtil {
         return path != null ? path : new File("").getAbsolutePath();
     }
 
-    protected void setVariableValueToObject(Object object, String filed, Object value) throws IllegalAccessException {
-        ReflectionUtils.setVariableValueInObject(object, filed, value);
+    protected void setVariableValueToObject(Object object, String field, Object value) throws IllegalAccessException {
+        ReflectionUtils.setVariableValueInObject(object, field, value);
     }
 }