From c03a8bc175c827beff8226a4b1b36a7bf3993bb1 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 23 Nov 2018 18:35:27 +0100 Subject: [PATCH] Minor fix in indentation and style --- .../cc/arduino/packages/discoverers/NetworkDiscovery.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java b/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java index 502193153..8619a92f0 100644 --- a/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java +++ b/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java @@ -162,7 +162,7 @@ public class NetworkDiscovery implements Discovery, ServiceListener, Runnable { @Override public List listDiscoveredBoards() { - synchronized (reachableBoardPorts) { + synchronized (reachableBoardPorts) { return getBoardPortsDiscoveredWithJmDNS(); } } @@ -176,8 +176,8 @@ public class NetworkDiscovery implements Discovery, ServiceListener, Runnable { public void setReachableBoardPorts(List newReachableBoardPorts) { synchronized (reachableBoardPorts) { - this.reachableBoardPorts.clear(); - this.reachableBoardPorts.addAll(newReachableBoardPorts); + reachableBoardPorts.clear(); + reachableBoardPorts.addAll(newReachableBoardPorts); } }