Skip to content

Commit 600d1e1

Browse files
committed
CI fixup: don't use getLast()
method not available for Java17 CI
1 parent 2a0d27c commit 600d1e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/com/babai/ssplot/ui/PlotView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ private void nextAnimationFrame() {
127127

128128
/** Get current plot */
129129
public Optional<PlotData> getCurPlot() {
130-
return (plots.size() > 0) ? Optional.of(plots.getLast()) : Optional.empty();
130+
return (plots.size() > 0)
131+
? Optional.of(plots.get(plots.size() - 1))
132+
: Optional.empty();
131133
}
132134

133135
/** Sets current plot */

0 commit comments

Comments
 (0)