-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtime_11.diff
22 lines (22 loc) · 1.16 KB
/
time_11.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/joda/time/tz/ZoneInfoCompiler.java b/src/main/java/org/joda/time/tz/ZoneInfoCompiler.java
index 6efe0716..b152cbfe 100644
--- a/src/main/java/org/joda/time/tz/ZoneInfoCompiler.java
+++ b/src/main/java/org/joda/time/tz/ZoneInfoCompiler.java
@@ -75,6 +75,18 @@ public class ZoneInfoCompiler {
* @return true to log verbosely
*/
public static boolean verbose() {
+ if (Boolean.valueOf(System.getProperty("defects4j.instrumentation.enabled"))) { // defects4j.instrumentation
+ try { // defects4j.instrumentation
+ return verbose_original(); // defects4j.instrumentation
+ } catch (NullPointerException e) { // defects4j.instrumentation
+ throw new RuntimeException("[Defects4J_BugReport_Violation]"); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } else { // defects4j.instrumentation
+ return verbose_original(); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } // defects4j.instrumentation
+
+ public static boolean verbose_original() { // defects4j.instrumentation
return cVerbose.get();
}