-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchart_1.diff
23 lines (23 loc) · 1.44 KB
/
chart_1.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/chart/renderer/category/AbstractCategoryItemRenderer.java b/source/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java
index 226b25a..6b1c345 100644
--- a/source/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java
+++ b/source/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java
@@ -1788,6 +1788,18 @@ public abstract class AbstractCategoryItemRenderer extends AbstractRenderer
* @see #getLegendItem(int, int)
*/
public LegendItemCollection getLegendItems() {
+ if (Boolean.parseBoolean(System.getProperty("defects4j.instrumentation.enabled"))) { // defects4j.instrumentation
+ try { // defects4j.instrumentation
+ return getLegendItems_original(); // defects4j.instrumentation
+ } catch (NullPointerException e) { // defects4j.instrumentation
+ throw new RuntimeException("[Defects4J_BugReport_Violation]"); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } else { // defects4j.instrumentation
+ return getLegendItems_original(); // defects4j.instrumentation
+ } // defects4j.instrumentation
+ } // defects4j.instrumentation
+
+ public LegendItemCollection getLegendItems_original() { // defects4j.instrumentation
LegendItemCollection result = new LegendItemCollection();
if (this.plot == null) {
return result;