We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 247c179 commit f0ae01dCopy full SHA for f0ae01d
java/libraries/net/src/processing/net/Server.java
@@ -177,14 +177,16 @@ protected int clientIndex(Client client) {
177
return -1;
178
}
179
180
+
181
/**
182
* Return true if this server is still active and hasn't run
183
* into any trouble.
184
*/
185
public boolean active() {
- return (thread != null);
186
+ return thread != null;
187
188
189
190
static public String ip() {
191
try {
192
return InetAddress.getLocalHost().getHostAddress();
java/libraries/serial/src/processing/serial/Serial.java
@@ -140,7 +140,7 @@ public void dispose() {
140
141
142
143
- return (port.isOpened());
+ return port.isOpened();
144
145
146
0 commit comments