remove unnecessary parens

This commit is contained in:
Ben Fry
2014-11-14 15:08:52 -07:00
parent f4ce5e5a1f
commit 96b9f8dc21
2 changed files with 4 additions and 2 deletions
@@ -177,14 +177,16 @@ public class Server implements Runnable {
return -1;
}
/**
* Return true if this server is still active and hasn't run
* into any trouble.
*/
public boolean active() {
return (thread != null);
return thread != null;
}
static public String ip() {
try {
return InetAddress.getLocalHost().getHostAddress();
@@ -140,7 +140,7 @@ public class Serial implements SerialPortEventListener {
* into any trouble.
*/
public boolean active() {
return (port.isOpened());
return port.isOpened();
}