This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-exec.git
The following commit(s) were added to refs/heads/master by this push:
new 7ec29301 Use preferred spelling for "cannot"
7ec29301 is described below
commit 7ec29301e6b87a3b89108809063f2db8a4a4f85d
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Nov 5 07:02:32 2024 -0500
Use preferred spelling for "cannot"
---
src/main/java/org/apache/commons/exec/CommandLine.java | 6 +++---
src/main/java/org/apache/commons/exec/DefaultExecutor.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/commons/exec/CommandLine.java
b/src/main/java/org/apache/commons/exec/CommandLine.java
index bd23ff14..cd42f063 100644
--- a/src/main/java/org/apache/commons/exec/CommandLine.java
+++ b/src/main/java/org/apache/commons/exec/CommandLine.java
@@ -76,10 +76,10 @@ public class CommandLine {
public static CommandLine parse(final String line, final Map<String, ?>
substitutionMap) {
if (line == null) {
- throw new IllegalArgumentException("Command line can not be null");
+ throw new IllegalArgumentException("Command line cannot be null");
}
if (line.trim().isEmpty()) {
- throw new IllegalArgumentException("Command line can not be
empty");
+ throw new IllegalArgumentException("Command line cannot be empty");
}
final String[] tmp = translateCommandline(line);
@@ -395,7 +395,7 @@ public class CommandLine {
private String toCleanExecutable(final String dirtyExecutable) {
Objects.requireNonNull(dirtyExecutable, "dirtyExecutable");
if (dirtyExecutable.trim().isEmpty()) {
- throw new IllegalArgumentException("Executable can not be empty");
+ throw new IllegalArgumentException("Executable cannot be empty");
}
return StringUtils.fixFileSeparatorChar(dirtyExecutable);
}
diff --git a/src/main/java/org/apache/commons/exec/DefaultExecutor.java
b/src/main/java/org/apache/commons/exec/DefaultExecutor.java
index a738b9e3..3537d5e8 100644
--- a/src/main/java/org/apache/commons/exec/DefaultExecutor.java
+++ b/src/main/java/org/apache/commons/exec/DefaultExecutor.java
@@ -461,7 +461,7 @@ public class DefaultExecutor implements Executor {
*/
protected Process launch(final CommandLine command, final Map<String,
String> env, final File workingDirectory) throws IOException {
if (launcher == null) {
- throw new IllegalStateException("CommandLauncher can not be null");
+ throw new IllegalStateException("CommandLauncher cannot be null");
}
checkWorkingDirectory(workingDirectory);
return launcher.exec(command, env, workingDirectory);