Skip to content

Commit 4d604e6

Browse files
committed
CSSTUDIO-3420 Change type from LinkedList<> to ArrayList<> for 'pvNameToInstantToValue'.
1 parent 0a56674 commit 4d604e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/display/waterfallplot/src/main/java/org/phoebus/applications/waterfallplotwidget/WaterfallPlotController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public synchronized void redraw(WaterfallPlotRuntime.PVData pvData) {
336336
}
337337
}
338338
} else if (pvData instanceof WaterfallPlotRuntime.ScalarPVsData scalarPVsData) {
339-
LinkedList<Pair<String, ConcurrentSkipListMap<Instant, Double>>> pvNameToInstantToValue = scalarPVsData.pvNameToInstantToValue();
339+
ArrayList<Pair<String, ConcurrentSkipListMap<Instant, Double>>> pvNameToInstantToValue = scalarPVsData.pvNameToInstantToValue();
340340
pvNameToInstantToValue.forEach(pvNameAndInstantToValueAtomicReference -> garbageCollectInstantToValue(pvNameAndInstantToValueAtomicReference.getValue(), t1));
341341

342342
minFromPV = scalarPVsData.minFromPV().get();

app/display/waterfallplot/src/main/java/org/phoebus/applications/waterfallplotwidget/WaterfallPlotRuntime.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void initialize(WaterfallPlotWidget waterfallPlotWidget) {
6262
else {
6363
pvData = new ScalarPVsData(new AtomicDouble(Double.NaN),
6464
new AtomicDouble(Double.NaN),
65-
new LinkedList<>());
65+
new ArrayList<>());
6666
}
6767
retrieveHistoricValuesFromTheArchiver = waterfallPlotWidget.propRetrieveHistoricValuesFromTheArchiver().getValue();
6868
pvNames = waterfallPlotWidget.propInputPVs().getValue().stream().map(widgetProperty -> widgetProperty.getValue()).collect(Collectors.toUnmodifiableList());
@@ -75,7 +75,7 @@ public record WaveformPVData (AtomicDouble minFromPV,
7575
ConcurrentSkipListMap<Instant, ArrayList<Double>> instantToValue) implements PVData {}
7676
public record ScalarPVsData (AtomicDouble minFromPV,
7777
AtomicDouble maxFromPV,
78-
LinkedList<Pair<String, ConcurrentSkipListMap<Instant, Double>>> pvNameToInstantToValue) implements PVData {}
78+
ArrayList<Pair<String, ConcurrentSkipListMap<Instant, Double>>> pvNameToInstantToValue) implements PVData {}
7979

8080
@Override
8181
public void start() {

0 commit comments

Comments
 (0)