Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate methods that have been obsolete since Java 1.5 #72

Merged
merged 1 commit into from
Jan 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ public Integer call()
* 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 ) );
Expand All @@ -435,9 +435,9 @@ public static Properties getSystemEnvVars()
*
* @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();
Expand Down