From 3f974adefdbde52aa78e03561b3522d5284ea2d5 Mon Sep 17 00:00:00 2001 From: "Qinghui.Liu" Date: Fri, 8 May 2020 15:37:17 +0800 Subject: [PATCH] =?UTF-8?q?CHART-13786=20=E8=A7=A3=E5=86=B3=E5=85=B1?= =?UTF-8?q?=E7=94=A8=E9=9D=99=E6=80=81=E5=8F=98=E9=87=8F=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E8=87=AA=E5=8A=A8=E6=A0=87=E8=AE=B0=E7=82=B9=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/marker/VanChartCommonMarkerPane.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/designer-chart/src/main/java/com/fr/van/chart/designer/component/marker/VanChartCommonMarkerPane.java b/designer-chart/src/main/java/com/fr/van/chart/designer/component/marker/VanChartCommonMarkerPane.java index f626045011..746e0e4018 100644 --- a/designer-chart/src/main/java/com/fr/van/chart/designer/component/marker/VanChartCommonMarkerPane.java +++ b/designer-chart/src/main/java/com/fr/van/chart/designer/component/marker/VanChartCommonMarkerPane.java @@ -53,18 +53,19 @@ public class VanChartCommonMarkerPane extends BasicBeanPane return normalMarkers; } + private static Marker[] normalMarkersWithAuto = null; protected static Marker[] getNormalMarkersWithAuto() { - if (normalMarkers == null) { - normalMarkers = new Marker[NORMAL_TYPES.length + 1]; - normalMarkers[0] = Marker.createMarker(MarkerType.MARKER_AUTO); + if (normalMarkersWithAuto == null) { + normalMarkersWithAuto = new Marker[NORMAL_TYPES.length + 1]; + normalMarkersWithAuto[0] = Marker.createMarker(MarkerType.MARKER_AUTO); int i = 1; for (MarkerType markerType : NORMAL_TYPES) { - normalMarkers[i++] = Marker.createMarker(markerType); + normalMarkersWithAuto[i++] = Marker.createMarker(markerType); } } - return normalMarkers; + return normalMarkersWithAuto; } //没有无这个选项