Wrote /root/JavaX-Caches/tmp_386132706/main.java - 1372 bytes (written=1372, should be 1372) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_1566538276 /root/JavaX-Caches/tmp_386132706/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_386132706/main.java:1: error: class, interface, or enum expected persistable sclass MAIndicator extends CandleBasedIndicator<Double> is IntegrityCheckable { ^ /root/JavaX-Caches/tmp_386132706/main.java:6: error: class, interface, or enum expected settableWithVar TickerSequence history = new TickerSequence("MA"); ^ /root/JavaX-Caches/tmp_386132706/main.java:9: error: class, interface, or enum expected double value = Double.NaN; ^ /root/JavaX-Caches/tmp_386132706/main.java:12: error: class, interface, or enum expected settable int maxHistoryLength = 1000; ^ /root/JavaX-Caches/tmp_386132706/main.java:14: error: class, interface, or enum expected Double value() { ret value; } ^ /root/JavaX-Caches/tmp_386132706/main.java:14: error: class, interface, or enum expected Double value() { ret value; } ^ /root/JavaX-Caches/tmp_386132706/main.java:21: error: class, interface, or enum expected onCandleAdded((IVF1<TradingCandle>) candle -> { ^ /root/JavaX-Caches/tmp_386132706/main.java:24: error: class, interface, or enum expected ma.add(candle.close()); ^ /root/JavaX-Caches/tmp_386132706/main.java:25: error: class, interface, or enum expected value = ma.complete() ? ma! : Double.NaN; ^ /root/JavaX-Caches/tmp_386132706/main.java:26: error: class, interface, or enum expected if (!isNaN(value)) { ^ /root/JavaX-Caches/tmp_386132706/main.java:28: error: class, interface, or enum expected history?.addIfPriceChanged(value, time); ^ /root/JavaX-Caches/tmp_386132706/main.java:29: error: class, interface, or enum expected shortenHistory(); ^ /root/JavaX-Caches/tmp_386132706/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_386132706/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_386132706/main.java:36: error: class, interface, or enum expected ret history; ^ /root/JavaX-Caches/tmp_386132706/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_386132706/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_386132706/main.java:45: error: class, interface, or enum expected makeMA(); ^ /root/JavaX-Caches/tmp_386132706/main.java:46: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_386132706/main.java:48: error: class, interface, or enum expected public void integrityCheck { ^ /root/JavaX-Caches/tmp_386132706/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_386132706/main.java:54: error: class, interface, or enum expected if (history != null && history.size() > maxHistoryLength+increment) ^ /root/JavaX-Caches/tmp_386132706/main.java:56: error: class, interface, or enum expected } ^ 23 errors