diff --git a/pom.xml b/pom.xml index 231c295..0699c0e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ ru.simplex_software web-statistics - 1.1 + 1.2 jar web-statistics diff --git a/src/main/java/ru/simplex_software/web_statistics/service/RequestStatisticService.java b/src/main/java/ru/simplex_software/web_statistics/service/RequestStatisticService.java index 25477a5..6a06712 100644 --- a/src/main/java/ru/simplex_software/web_statistics/service/RequestStatisticService.java +++ b/src/main/java/ru/simplex_software/web_statistics/service/RequestStatisticService.java @@ -42,7 +42,7 @@ .forEach(r -> r.setAverage((float) r.getTotal() / r.getCount())); statistic.entrySet().stream() .sorted((e1, e2) -> Float.compare(e2.getValue().getAverage(), e1.getValue().getAverage())) - .forEachOrdered(e -> result.put(e.getKey(), e.getValue())); + .forEach(e -> result.put(e.getKey(), e.getValue())); return result; }