mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 14:57:35 +07:00
[java-inspections] ReplaceInefficientStreamCountInspection: test preview
GitOrigin-RevId: 9d8cf85eb1eee3ca8a38c2bcde119666afcc7934
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2ca2ae1758
commit
92ac28f978
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true"
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true"
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true"
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true"
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.anyMatch()'" "true"
|
||||
// "Replace with 'stream.anyMatch()'" "true-preview"
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.anyMatch()'" "true"
|
||||
// "Replace with 'stream.anyMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.anyMatch()'" "true"
|
||||
// "Replace with 'stream.anyMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.noneMatch()'" "true"
|
||||
// "Replace with 'stream.noneMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.anyMatch()'" "true"
|
||||
// "Replace with 'stream.anyMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.noneMatch()'" "true"
|
||||
// "Replace with 'stream.noneMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.noneMatch()'" "true"
|
||||
// "Replace with 'stream.noneMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true"
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true"
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true"
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true"
|
||||
// "Replace with 'Stream.mapToLong().sum()'" "true-preview"
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.anyMatch()'" "true"
|
||||
// "Replace with 'stream.anyMatch()'" "true-preview"
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true"
|
||||
// "Replace with 'stream.findAny().isPresent()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.anyMatch()'" "true"
|
||||
// "Replace with 'stream.anyMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.anyMatch()'" "true"
|
||||
// "Replace with 'stream.anyMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.noneMatch()'" "true"
|
||||
// "Replace with 'stream.noneMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'Collection.size()'" "true"
|
||||
// "Replace with 'Collection.size()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.anyMatch()'" "true"
|
||||
// "Replace with 'stream.anyMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.noneMatch()'" "true"
|
||||
// "Replace with 'stream.noneMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.noneMatch()'" "true"
|
||||
// "Replace with 'stream.noneMatch()'" "true-preview"
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true"
|
||||
// "Replace with 'stream.findAny().isEmpty()'" "true-preview"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user