Skip to content

Commit 098e831

Browse files
committed
Code style
1 parent 0309c1d commit 098e831

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/spyware/HostInformationGenerator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package fi.helsinki.cs.tmc.spyware;
22

33
import fi.helsinki.cs.tmc.utilities.JsonMaker;
4+
import java.net.InetAddress;
45
import java.net.NetworkInterface;
56
import java.nio.charset.Charset;
67
import java.security.MessageDigest;
@@ -23,8 +24,6 @@ public class HostInformationGenerator {
2324

2425
public String updateHostInformation(EventReceiver receiver) {
2526
JsonMaker data = getStaticHostInformation();
26-
// Should be unique enough not to collapse among singe users machines.
27-
2827

2928
String hostId = trySecureHash(data.toString());
3029

@@ -43,7 +42,7 @@ private static JsonMaker getStaticHostInformation() {
4342
JsonMaker builder = JsonMaker.create();
4443

4544
try {
46-
java.net.InetAddress localMachine = java.net.InetAddress.getLocalHost();
45+
InetAddress localMachine = java.net.InetAddress.getLocalHost();
4746
builder.add("hostAddress", localMachine.getHostAddress());
4847
builder.add("hostName", localMachine.getHostName());
4948
} catch (Exception ex) {

0 commit comments

Comments
 (0)