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

elharo pushed a commit to branch doc
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git


The following commit(s) were added to refs/heads/doc by this push:
     new b28ce0e  no-op
b28ce0e is described below

commit b28ce0e407afbf3fe32d843ba1ac1f7049eabb23
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Thu Jun 1 06:51:54 2023 -0400

    no-op
---
 .../java/org/apache/maven/shared/utils/cli/Commandline.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/maven/shared/utils/cli/Commandline.java 
b/src/main/java/org/apache/maven/shared/utils/cli/Commandline.java
index f74ff8f..99650fc 100644
--- a/src/main/java/org/apache/maven/shared/utils/cli/Commandline.java
+++ b/src/main/java/org/apache/maven/shared/utils/cli/Commandline.java
@@ -182,7 +182,7 @@ public class Commandline implements Cloneable {
     }
 
     /**
-     * Noop.
+     * No-op.
      *
      * @deprecated use {@link #setShellEnvironmentInherited(boolean)}
      */
@@ -300,13 +300,13 @@ public class Commandline implements Cloneable {
         return StringUtils.join(getShellCommandline(true), " ");
     }
 
-    /** {@inheritDoc}
+    /**
+     * Do not call. Always throws an UnsupportedOperationException.
+     * 
+     * @throws UnsupportedOperationException
      */
     public Object clone() {
-        throw new RuntimeException("Do we ever clone a commandline?");
-        /*        Commandline c = new Commandline( (Shell) shell.clone() );
-        c.addArguments( getArguments() );
-         return c;*/
+        throw new UnsupportedOperationException("Do we ever clone a 
commandline?");
     }
 
     /**

Reply via email to