Github user afs commented on a diff in the pull request:
https://github.com/apache/jena/pull/199#discussion_r93801583
--- Diff: jena-base/src/main/java/org/apache/jena/atlas/lib/StrUtils.java
---
@@ -33,32 +35,34 @@ private StrUtils() {}
/** strjoin with a newline as the separator */
public static String strjoinNL(String... args) {
- return join("\n", args);
+ return String.join("\n", args);
}
/** strjoin with a newline as the separator */
public static String strjoinNL(List<String> args) {
- return join("\n", args);
+ return String.join("\n", args);
}
- /** Concatentate strings, using a separator */
+ /**
+ * Concatentate strings, using a separator
+ *
+ * @deprecated Prefer String.join(sep, args)
+ */
+ @Deprecated
public static String strjoin(String sep, String... args) {
- return join(sep, args);
+ return String.join(sep, args);
}
- /** Concatentate strings, using a separator */
+ /**
+ * Concatentate strings, using a separator
+ *
+ * @deprecated Prefer String.join(sep, args)
+ */
+ @Deprecated
--- End diff --
Ditto.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---