From: Simon Brandhof Date: Tue, 10 Jul 2012 16:06:12 +0000 (+0200) Subject: Improve javadoc of org.sonar.api.utils.command.Command X-Git-Tag: 3.2~146 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9b845d63a452794a347dbf78ddb600bed0b7adcb;p=sonarqube.git Improve javadoc of org.sonar.api.utils.command.Command --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java index 04614bd2bc3..fd44f5b70e5 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/Command.java @@ -80,9 +80,7 @@ public final class Command { } /** - * Adds or overrides an environment variable. The initial values are a copy of the environment - * of the current process. - * + * @see {@link org.sonar.api.utils.command.Command#getEnvironmentVariables()} * @since 3.2 */ public Command setEnvironmentVariable(String name, String value) { @@ -91,6 +89,10 @@ public final class Command { } /** + * Environment variables that are propagated during command execution. + * The initial value is a copy of the environment of the current process. + * + * @return a non-null and immutable map of variables * @since 3.2 */ public Map getEnvironmentVariables() { @@ -115,6 +117,7 @@ public final class Command { /** * Create a command line without any arguments + * * @param executable */ public static Command create(String executable) {