void (String[] args) { new Random().ints().boxed().<warning descr="Non-short-circuit operation consumes infinite stream">collect</warning>(Collectors.toList()); new Random().doubles().boxed().<warning descr="Non-short-circuit operation consumes infinite stream">collect</warning>(Collectors.toList()); new Random().longs().boxed().<warning descr="Non-short-circuit operation consumes infinite stream">collect</warning>(Collectors.toList()); }