From 3cf17287b6695e87e2df38b09167548cdbe9617f Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 13 Feb 2022 14:11:22 -0500 Subject: [PATCH] fields seem unused code comment --- src/main/java/com/fazecast/jSerialComm/SerialPort.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/fazecast/jSerialComm/SerialPort.java b/src/main/java/com/fazecast/jSerialComm/SerialPort.java index aa08eb6..8a80f9b 100644 --- a/src/main/java/com/fazecast/jSerialComm/SerialPort.java +++ b/src/main/java/com/fazecast/jSerialComm/SerialPort.java @@ -559,6 +559,7 @@ public final class SerialPort private volatile SerialPortDataListener userDataListener = null; private volatile SerialPortEventListener serialEventListener = null; private volatile String comPort, friendlyName, portDescription, portLocation; + // many of the fields here are accessed by C code private volatile boolean eventListenerRunning = false, disableConfig = false, disableExclusiveLock = false; private volatile boolean rs485Mode = false, rs485ActiveHigh = true, rs485RxDuringTx = false, rs485EnableTermination = false; private volatile boolean isRtsEnabled = true, isDtrEnabled = true, autoFlushIOBuffers = false, requestElevatedPermissions = false;