Skip to content

Commit

Permalink
Remove redundant clear() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfree committed Jan 8, 2023
1 parent e714aa2 commit b3e20e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/jfree/chart/axis/NumberAxis.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import java.io.Serializable;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
Expand Down Expand Up @@ -980,9 +981,7 @@ protected List refreshTicksHorizontal(Graphics2D g2,
protected List refreshTicksVertical(Graphics2D g2,
Rectangle2D dataArea, RectangleEdge edge) {

List result = new java.util.ArrayList();
result.clear();

List<Tick> result = new ArrayList<>();
Font tickLabelFont = getTickLabelFont();
g2.setFont(tickLabelFont);
if (isAutoTickUnitSelection()) {
Expand Down

0 comments on commit b3e20e2

Please sign in to comment.