Adding signature sorting by timestamps.
[pingpong.git] / Code / Projects / SmartPlugDetector / src / main / java / edu / uci / iotproject / util / PrintUtils.java
index 34412d04adc6760ee13d1fabbc34d29bfdf08a56..ba782ea5ae8f830c55245c2e1e136eae962cd5c0 100644 (file)
@@ -134,15 +134,15 @@ public class PrintUtils {
         Optional<Set<String>> secondHostnames = secondSrc.map(src -> ipHostnameMappings.getHostnamesForIp(src));
         final String delimiter = " ";
         if (firstHostnames != null) {
-            // If one IP maps to multiple hostnames, we concatenate the hostnames (separated by a delimiter)
+            // If one IP maps to multiple hostnames, we concatenate the hostnames (separated by a delimiter).
             firstSrc = firstHostnames.stream().collect(Collectors.joining(delimiter));
         }
-        // If one IP maps to multiple hostnames, we concatenate the hostnames (separated by a delimiter)
+        // If one IP maps to multiple hostnames, we concatenate the hostnames (separated by a delimiter).
         Optional<String> hostnames = secondHostnames.map(hostnameSet -> hostnameSet.stream().collect(Collectors.joining(delimiter)));
         // Fall back to IP if we couldn't second pair is present, but we couldn't map to (a) hostname(s).
         secondSrc = hostnames.isPresent() ? hostnames : secondSrc;
 
-        // Check if the first source is C (client) or S (server)
+        // Check if the first source is C (client) or S (server).
         String firstSrcCorS = packetPair.isFirstClient() ? "C" : "S";
         String secondSrcCorS = packetPair.isSecondClient() ? "C" : "S";