| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -177,14 +177,16 @@ protected int clientIndex(Client client) { | |||
| 177 | 177 | return -1; | |
| 178 | 178 | } | |
| 179 | 179 | ||
| 180 | + | ||
| 180 | 181 | /** | |
| 181 | 182 | * Return true if this server is still active and hasn't run | |
| 182 | 183 | * into any trouble. | |
| 183 | 184 | */ | |
| 184 | 185 | public boolean active() { | |
| 185 | - return (thread != null); | ||
| 186 | + return thread != null; | ||
| 186 | 187 | } | |
| 187 | 188 | ||
| 189 | + | ||
| 188 | 190 | static public String ip() { | |
| 189 | 191 | try { | |
| 190 | 192 | return InetAddress.getLocalHost().getHostAddress(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -140,7 +140,7 @@ public void dispose() { | |||
| 140 | 140 | * into any trouble. | |
| 141 | 141 | */ | |
| 142 | 142 | public boolean active() { | |
| 143 | - return (port.isOpened()); | ||
| 143 | + return port.isOpened(); | ||
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | 146 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments