Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b12331f

Browse files
committed
fix formatting and javadoc error
1 parent 618233a commit b12331f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/de/taimos/gpsd4java/backend/GPSdEndpoint.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ public void start() {
122122
*/
123123
public void stop() {
124124
try {
125-
socket.close();
125+
this.socket.close();
126126
} catch (final IOException e1) {
127-
GPSdEndpoint.LOG.debug("Close forced: "+ e1.getMessage());
127+
GPSdEndpoint.LOG.debug("Close forced: " + e1.getMessage());
128128
}
129-
129+
130130
try {
131131
this.listeners.clear();
132-
if(listenThread != null) {
132+
if (this.listenThread != null) {
133133
this.listenThread.halt();
134134
}
135135
} catch (final Exception e) {
@@ -304,12 +304,12 @@ void handle(final IGPSObject object) {
304304
}
305305
}
306306
}
307-
307+
308308
/**
309309
* Attempt to kick a failed device back into life on gpsd server.
310-
*
311-
* @see https://lists.gnu.org/archive/html/gpsd-dev/2015-06/msg00001.html
312-
*
310+
*
311+
* see: https://lists.gnu.org/archive/html/gpsd-dev/2015-06/msg00001.html
312+
*
313313
* @param path Path of device known to gpsd
314314
* @throws IOException
315315
* @throws JSONException
@@ -318,6 +318,6 @@ public void kickDevice(String path) throws IOException, JSONException {
318318
final JSONObject d = new JSONObject();
319319
d.put("class", "DEVICE");
320320
d.put("path", path);
321-
voidCommand("?DEVICE="+d);
321+
this.voidCommand("?DEVICE=" + d);
322322
}
323323
}

0 commit comments

Comments
 (0)