Skip to content

Commit

Permalink
Fix flaky test PolarPlotTest.testGetLegendItems2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujishark committed Nov 13, 2023
1 parent e2d6788 commit cc11c17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/jfree/chart/plot/PolarPlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -258,7 +259,7 @@ public PolarPlot(XYDataset dataset, ValueAxis radiusAxis, PolarItemRenderer rend
this.axisLocations.put(6, PolarAxisLocation.WEST_ABOVE);
this.axisLocations.put(7, PolarAxisLocation.SOUTH_LEFT);

this.renderers = new HashMap<>();
this.renderers = new LinkedHashMap<>();
this.renderers.put(0, renderer);
if (renderer != null) {
renderer.setPlot(this);
Expand Down

0 comments on commit cc11c17

Please sign in to comment.