This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git
The following commit(s) were added to refs/heads/master by this push:
new 7e74357 [MSHARED-1215] deprecate Os class that hasn't been maintained
for over a decade and is badly out of date (#157)
7e74357 is described below
commit 7e743573339367d77374275a1aeeef26d591e6e7
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Sun Jun 18 15:21:47 2023 -0400
[MSHARED-1215] deprecate Os class that hasn't been maintained for over a
decade and is badly out of date (#157)
---
src/main/java/org/apache/maven/shared/utils/Os.java | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/apache/maven/shared/utils/Os.java
b/src/main/java/org/apache/maven/shared/utils/Os.java
index 184b98a..c6151bb 100644
--- a/src/main/java/org/apache/maven/shared/utils/Os.java
+++ b/src/main/java/org/apache/maven/shared/utils/Os.java
@@ -23,21 +23,25 @@ import java.util.HashSet;
import java.util.Locale;
import java.util.Set;
-/**
- * <p>Condition that tests the OS type.</p>
- * <p>This class got copied over from Apache ANT.
+/*
+ * This class was copied over from Apache ANT.
* Even the version from plexus-utils was
* only an ANT fork!
* The last time it got copied was on 2011-08-12</p>
- * <p>When merging changes please take care of the special
- * OS_FAMILY handling in this version of Os.java!</p>
+ * When merging changes please take care of the special
+ * OS_FAMILY handling in this version of Os.java!
+ */
+
+/**
+ * <p>Condition that tests the OS type.</p>
*
* @author Stefan Bodewig
* @author Magesh Umasankar
* @author Brian Fox
* @author Mark Struberg
- *
+ * @deprecated use {@code org.apache.commons.lang3.SystemUtils} instead
*/
+@Deprecated
public class Os {
/**
* The OS Name.