You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/08/14 13:01:53 UTC
[maven-shared-utils] 01/01: deprecate unifyLineSeparators
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch i954
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git
commit 6d5cfc895e34768ea4e96bb6d184282a2538bb92
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Fri Aug 14 09:00:56 2020 -0400
deprecate unifyLineSeparators
---
src/main/java/org/apache/maven/shared/utils/StringUtils.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/shared/utils/StringUtils.java b/src/main/java/org/apache/maven/shared/utils/StringUtils.java
index b44a054..1b7c3eb 100644
--- a/src/main/java/org/apache/maven/shared/utils/StringUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/StringUtils.java
@@ -2403,8 +2403,11 @@ public class StringUtils
* @param s a not null String
* @return a String that contains only System line separators
* @see #unifyLineSeparators(String, String)
- *
+ * @deprecated this method produces platform dependent code and contributes to
+ * non-reproducible builds. In the context of Maven, this is almost never what's needed.
+ * Remove calls to this method and do not replace them.
*/
+ @Deprecated
public static String unifyLineSeparators( @Nullable String s )
{
return unifyLineSeparators( s, System.getProperty( "line.separator" ) );