Reformatting code and organising imports. No logical change
package org.openqa.grid.web.servlet;
+import static java.util.stream.Collectors.groupingBy;
+import static java.util.stream.Collectors.reducing;
+import static java.util.stream.Collectors.toList;
import static org.openqa.selenium.json.Json.MAP_TYPE;
import com.google.common.base.Splitter;
import java.util.Map;
import java.util.TreeMap;
import java.util.stream.Collector;
-import static java.util.stream.Collectors.groupingBy;
-import static java.util.stream.Collectors.toList;
-import static java.util.stream.Collectors.reducing;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -163,7 +163,6 @@ protected void process(
res.put("msg", e.getMessage());
}
return res;
-
}
private Map<String, Object> getSlotCounts() {
@@ -208,8 +207,9 @@ private static boolean isKeyPresentIn(List<String> keys, String key) {
private List<Map<String, Object>> getInfoFromAllSlotsInNode(List<TestSlot> slots) {
List<Map<String, Object>> browsers = Lists.newArrayList();
- Map<String, List<TestSlot>>
- slotsInfo = slots.stream().collect(groupingBy(HubStatusServlet::getBrowser));
+ Map<String, List<TestSlot>> slotsInfo = slots.stream()
+ .collect(groupingBy(HubStatusServlet::getBrowser));
+
for (Map.Entry<String, List<TestSlot>> each : slotsInfo.entrySet()) {
String key = each.getKey();
Map<String, Object> value = getSlotInfoPerBrowserFlavor(each.getValue());
