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 3be4d08e Simplify 3be4d08e is described below commit 3be4d08e562893e638710415c36ed5ab9230d397 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Dec 13 09:15:04 2023 -0500 Simplify --- .../apache/commons/exec/launcher/CommandLauncherFactory.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/java/org/apache/commons/exec/launcher/CommandLauncherFactory.java b/src/main/java/org/apache/commons/exec/launcher/CommandLauncherFactory.java index 9f2bf34e..f8e885bc 100644 --- a/src/main/java/org/apache/commons/exec/launcher/CommandLauncherFactory.java +++ b/src/main/java/org/apache/commons/exec/launcher/CommandLauncherFactory.java @@ -31,15 +31,7 @@ public final class CommandLauncherFactory { */ public static CommandLauncher createVMLauncher() { // Try using a JDK 1.3 launcher - CommandLauncher launcher; - - if (OS.isFamilyOpenVms()) { - launcher = new VmsCommandLauncher(); - } else { - launcher = new Java13CommandLauncher(); - } - - return launcher; + return OS.isFamilyOpenVms() ? new VmsCommandLauncher() : new Java13CommandLauncher(); } private CommandLauncherFactory() {