mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
StreamToLoopInspection: preserve comments; CommentTracker: now possible to delete element first and only after that register unchanged parts.
This commit is contained in:
@@ -5,7 +5,8 @@ import java.util.function.LongSupplier;
|
||||
|
||||
public class Main {
|
||||
private static void test(List<String> list) {
|
||||
long count = list.stream().filter(s -> !s.isEmpty()).co<caret>unt();
|
||||
long count = list.stream(). // and filter!
|
||||
filter(s -> !s/* comment */.isEmpty()).co<caret>unt();
|
||||
if(count > 10) {
|
||||
LongSupplier sup = () -> count*2;
|
||||
long result = sup.get();
|
||||
|
||||
Reference in New Issue
Block a user