-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlang_20.diff
22 lines (22 loc) · 1.23 KB
/
lang_20.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 3c2cf3f2..e1047e0d 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -3227,6 +3227,18 @@ public class StringUtils {
* @since 3.0 Changed signature to use varargs
*/
public static <T> String join(T... elements) {
+ if (Boolean.parseBoolean(System.getProperty("defects4j.instrumentation.enabled"))) { // defects4j.instrumentation
+ try { // defects4j.instrumentation
+ return join_original(elements); // defects4j.instrumentation
+ } catch (NullPointerException e) { // defects4j.instrumentation
+ throw new RuntimeException("[Defects4J_BugReport_Violation]"); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } else { // defects4j.instrumentation
+ return join_original(elements); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } // defects4j.instrumentation
+
+ public static <T> String join_original(T... elements) { // defects4j.instrumentation
return join(elements, null);
}