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

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

commit 58cc4496c7ab45cc0da544fb65be0ac4bb6d878c
Author: Elliotte Rusty Harold <elh...@ibiblio.org>
AuthorDate: Fri Jan 22 06:18:37 2021 -0500

    deprecate methods that have been obsolete since Java 1.5
---
 .../java/org/apache/maven/shared/utils/cli/CommandLineUtils.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/shared/utils/cli/CommandLineUtils.java 
b/src/main/java/org/apache/maven/shared/utils/cli/CommandLineUtils.java
index 2ffcfb2..e01a574 100644
--- a/src/main/java/org/apache/maven/shared/utils/cli/CommandLineUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/cli/CommandLineUtils.java
@@ -421,9 +421,9 @@ public abstract class CommandLineUtils
      * with case-insensitive environment variables like Windows, all variable 
names will be normalized to upper case.
      *
      * @return The shell environment variables, can be empty but never 
<code>null</code>.
-     * @see System#getenv() System.getenv() API, new in JDK 5.0, to get the 
same result
-     *      <b>since 2.0.2 System#getenv() will be used if available in the 
current running jvm.</b>
+     * @deprecated use System#getenv()
      */
+    @Deprecated
     public static Properties getSystemEnvVars()
     {
         return getSystemEnvVars( !Os.isFamily( Os.FAMILY_WINDOWS ) );
@@ -435,9 +435,9 @@ public abstract class CommandLineUtils
      *
      * @param caseSensitive Whether environment variable keys should be 
treated case-sensitively.
      * @return Properties object of (possibly modified) envar keys mapped to 
their values.
-     * @see System#getenv() System.getenv() API, new in JDK 5.0, to get the 
same result
-     *      <b>since 2.0.2 System#getenv() will be used if available in the 
current running jvm.</b>
+     * @deprecated use System#getenv()
      */
+    @Deprecated
     public static Properties getSystemEnvVars( boolean caseSensitive )
     {
         Map<String, String> envs = System.getenv();

Reply via email to