-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchart_5.diff
23 lines (23 loc) · 1.25 KB
/
chart_5.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/source/org/jfree/data/xy/XYSeries.java b/source/org/jfree/data/xy/XYSeries.java
index 0b37e6e..f471bb8 100644
--- a/source/org/jfree/data/xy/XYSeries.java
+++ b/source/org/jfree/data/xy/XYSeries.java
@@ -538,6 +538,18 @@ public class XYSeries extends Series implements Cloneable, Serializable {
* item was overwritten.
*/
public XYDataItem addOrUpdate(Number x, Number y) {
+ if (Boolean.parseBoolean(System.getProperty("defects4j.instrumentation.enabled"))) { // defects4j.instrumentation
+ try { // defects4j.instrumentation
+ return addOrUpdate_orig(x, y); // defects4j.instrumentation
+ } catch (IndexOutOfBoundsException e) { // defects4j.instrumentation
+ throw new RuntimeException("[Defects4J_BugReport_Violation]"); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } else { // defects4j.instrumentation
+ return addOrUpdate_orig(x, y); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ }
+
+ public XYDataItem addOrUpdate_orig(Number x, Number y) { // defects4j.instrumentation
if (x == null) {
throw new IllegalArgumentException("Null 'x' argument.");
}