Skip to content

Commit

Permalink
Missing long suffix for cast (fixes #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Apr 12, 2024
1 parent 4ee8a90 commit 8c8bcd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/io/calimero/tools/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ static KNXNetworkLink newLink(final Map<String, Object> options) throws KNXExcep
@SuppressWarnings("resource")
final var link = new Connector().reconnectOn(false, true, true)
.reconnectDelay((Duration) options.getOrDefault("reconnectDelay", Duration.ofSeconds(4)))
.maxConnectAttempts((long) options.getOrDefault("maxConnectAttempts", 3))
.maxConnectAttempts((long) options.getOrDefault("maxConnectAttempts", 3L))
.newLink(() -> createNewLink(options));
link.addLinkListener(new NetworkLinkListener() {
@LinkEvent
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/NetworkMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ private KNXNetworkMonitor newMonitor() throws KNXException, InterruptedException
@SuppressWarnings("resource")
final var monitor = new Connector().reconnectOn(false, true, true)
.reconnectDelay((Duration) options.getOrDefault("reconnectDelay", Duration.ofSeconds(4)))
.maxConnectAttempts((long) options.getOrDefault("maxConnectAttempts", 3))
.maxConnectAttempts((long) options.getOrDefault("maxConnectAttempts", 3L))
.newMonitor(() -> createMonitor());
monitor.addMonitorListener(new LinkListener() {
@LinkEvent
Expand Down

0 comments on commit 8c8bcd0

Please sign in to comment.