IDEA-CR-13652 filter(Boolean::booleanValue).count() used

master
Tagir Valeev 8 years ago
parent bc728c9daf
commit 0912e3788c
  1. 2
      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)); 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) { if (precount <= postcount) {
return false; return false;

Loading…
Cancel
Save