diff --git a/demo/demo-morse/client/src/main/java/net/zscript/demo/morse/MorseFullCli.java b/demo/demo-morse/client/src/main/java/net/zscript/demo/morse/MorseFullCli.java index e4c55a5f..8182ef16 100644 --- a/demo/demo-morse/client/src/main/java/net/zscript/demo/morse/MorseFullCli.java +++ b/demo/demo-morse/client/src/main/java/net/zscript/demo/morse/MorseFullCli.java @@ -1,16 +1,7 @@ package net.zscript.demo.morse; -import com.fazecast.jSerialComm.SerialPort; - -import com.fazecast.jSerialComm.SerialPortInvalidPortException; -import picocli.CommandLine; -import picocli.CommandLine.Command; -import picocli.CommandLine.Option; -import picocli.CommandLine.Parameters; - import java.io.File; import java.io.FileInputStream; -import java.io.IOException; import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.util.ArrayList; @@ -21,6 +12,13 @@ import java.util.concurrent.Callable; import java.util.function.Predicate; +import com.fazecast.jSerialComm.SerialPort; +import com.fazecast.jSerialComm.SerialPortInvalidPortException; +import picocli.CommandLine; +import picocli.CommandLine.Command; +import picocli.CommandLine.Option; +import picocli.CommandLine.Parameters; + import net.zscript.javaclient.commandbuilder.commandnodes.CommandSequenceNode; import net.zscript.javaclient.commandbuilder.commandnodes.ResponseCaptor; import net.zscript.javaclient.commandbuilder.defaultCommands.BlankCommandNode; @@ -505,7 +503,7 @@ public Integer call() throws Exception { return 0; } - public static void main(String[] args) throws IOException, InterruptedException { + public static void main(String[] args) { int exitCode = new CommandLine(new MorseFullCli()).execute(args); System.exit(exitCode); } diff --git a/demo/demo-morse/client/src/main/java/net/zscript/demo/morse/MorseReceiver.java b/demo/demo-morse/client/src/main/java/net/zscript/demo/morse/MorseReceiver.java index 9029c2a6..94cb0dd3 100644 --- a/demo/demo-morse/client/src/main/java/net/zscript/demo/morse/MorseReceiver.java +++ b/demo/demo-morse/client/src/main/java/net/zscript/demo/morse/MorseReceiver.java @@ -1,16 +1,15 @@ package net.zscript.demo.morse; -import static net.zscript.model.modules.base.PinsModule.DigitalNotificationSectionContent.Value; - import java.util.ArrayList; import java.util.List; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; +import static net.zscript.model.modules.base.PinsModule.DigitalNotificationSectionContent.Value; + import net.zscript.javaclient.commandbuilder.commandnodes.ResponseCaptor; import net.zscript.javaclient.devices.Device; -import net.zscript.model.modules.base.CoreModule; import net.zscript.model.modules.base.OuterCoreModule; import net.zscript.model.modules.base.PinsModule; import net.zscript.model.modules.base.PinsModule.DigitalSetupCommand.Builder.Mode; diff --git a/receivers/jvm/java-receiver/src/main/java/net/zscript/javareceiver/semanticParser/SemanticParser.java b/receivers/jvm/java-receiver/src/main/java/net/zscript/javareceiver/semanticParser/SemanticParser.java index 10008967..9c4ddb0b 100644 --- a/receivers/jvm/java-receiver/src/main/java/net/zscript/javareceiver/semanticParser/SemanticParser.java +++ b/receivers/jvm/java-receiver/src/main/java/net/zscript/javareceiver/semanticParser/SemanticParser.java @@ -88,7 +88,7 @@ private Optional seekMarker(final boolean seekSeqEnd, final boolean f if (seekSeqEnd) { if (token.isPresent()) { - assignSeqEndMarker(token.get().getKey());// Literally only this case can happen mid command to cause an error... + assignSeqEndMarker(token.get().getKey()); // Literally only this case can happen mid-command to cause an error... } else { haveSeqEndMarker = false; }