ghostwriter
ghostwriter copied to clipboard
Procedure signature cauese compilation failure
Using a lambda expression in case of a function that has no return value causes a compilation failure.
To reproduce:
public void forEach(BiConsumer<? super K, ? super V> action) {
Collection<Map.Entry<K, V>> entries = null;
entries.forEach(entry -> action.accept(entry.getKey(), entry.getValue()));
}