Skip to content

Commit

Permalink
Refactor to use accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Feb 24, 2024
1 parent 301b176 commit fd264be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/calimero/tools/Discover.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ private void description(final Result<SearchResponse> r)
if (tcp != null) {
try {
final var description = tcp.description();
onDescriptionReceived(description, new HPAI(hpai.getHostProtocol(), server));
onDescriptionReceived(description, new HPAI(hpai.hostProtocol(), server));
}
catch (final InterruptedException e) {
Thread.currentThread().interrupt();
Expand All @@ -558,7 +558,7 @@ private void description(final Result<SearchResponse> r)
: new Discoverer(r.localEndpoint().getAddress(), 0, options.containsKey("nat"), false);
final int timeout = 2;
final Result<DescriptionResponse> dr = discoverer.getDescription(server, timeout);
onDescriptionReceived(dr, new HPAI(hpai.getHostProtocol(), server));
onDescriptionReceived(dr, new HPAI(hpai.hostProtocol(), server));
}
catch (final KNXException e) {
System.out.println("description failed for server " + server + " using " + r.localEndpoint().getAddress()
Expand Down

0 comments on commit fd264be

Please sign in to comment.