From 0912e3788ce0a47a0d743f8fe95da3a7a2b87984 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Fri, 9 Sep 2016 14:51:12 +0700 Subject: [PATCH] IDEA-CR-13652 filter(Boolean::booleanValue).count() used --- .../decompiler/modules/decompiler/EliminateLoopsHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/EliminateLoopsHelper.java b/src/org/jetbrains/java/decompiler/modules/decompiler/EliminateLoopsHelper.java index bf94124..0b145a6 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/EliminateLoopsHelper.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/EliminateLoopsHelper.java @@ -135,7 +135,7 @@ public class EliminateLoopsHelper { statLabeled.put(st.id, LowBreakHelper.isBreakEdgeLabeled(lstBreakEdges.get(i).getSource(), st) | statLabeled.get(st.id)); } - int postcount = statLabeled.values().stream().mapToInt(val -> val ? 1 : 0).sum(); + long postcount = statLabeled.values().stream().filter(Boolean::booleanValue).count(); if (precount <= postcount) { return false;