Skip to content

Commit

Permalink
Fix compiler errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed Nov 27, 2024
1 parent 9548f42 commit 80189d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/jssc/SerialPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -1213,14 +1213,14 @@ public void run() {
int[][] eventArray;
try {
eventArray = waitEvents();
} catch (IOException ex) {
if (log.isDebugEnabled()) log.warn("waitEvents() failed", ex);
else log.warn("waitEvents() failed: {}", ex.getMessage());
} catch (IOException ex1) {
if (log.isDebugEnabled()) log.warn("waitEvents() failed", ex1);
else log.warn("waitEvents() failed: {}", ex1.getMessage());
try {
Thread.sleep(500);
} catch (InterruptedException ex) {
log.debug("Got interrupted", ex);
Thread.currentThread().interrup();
} catch (InterruptedException ex2) {
log.debug("Got interrupted", ex2);
Thread.currentThread().interrupt();
threadTerminated = true;
}
continue;
Expand Down
1 change: 1 addition & 0 deletions src/main/module-info/module-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@SuppressWarnings({ "requires-automatic", "requires-transitive-automatic" })
open module jssc {
requires transitive org.scijava.nativelib;
requires org.slf4j;
exports jssc;
}

0 comments on commit 80189d6

Please sign in to comment.