mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
improve "Redundant step in 'Stream' or 'Optional' call chain" inspection messages
GitOrigin-RevId: 37afe33d6a5e437a80338183e0019bf399fcfc45
This commit is contained in:
committed by
intellij-monorepo-bot
parent
312cbd98d6
commit
358239888b
@@ -1,12 +1,12 @@
|
||||
<html>
|
||||
<body>
|
||||
Reports redundant Stream or Optional calls like <code>map(x -> x)</code> or <code>filter(x -> true)</code>,
|
||||
redundant <code>sorted</code> or <code>distinct</code>.
|
||||
Reports redundant <code>Stream</code> or <code>Optional</code> calls like <code>map(x -> x)</code>, <code>filter(x -> true)</code> or
|
||||
redundant <code>sorted()</code> or <code>distinct()</code> calls.
|
||||
<!-- tooltip end -->
|
||||
<p>Note that a mapping operation in code like <code>streamOfIntegers.map(Integer::valueOf)</code>
|
||||
works as <code>requireNonNull</code> check:
|
||||
works as <code>requireNonNull()</code> check:
|
||||
if the stream contains <code>null</code>, it throws a <code>NullPointerException</code>, thus it's not absolutely redundant.
|
||||
Disable the <b>Report redundant boxing in Stream.map</b> option if you do not want such cases to be reported.</p>
|
||||
Disable the <b>Report redundant boxing in Stream.map()</b> option if you do not want such cases to be reported.</p>
|
||||
<p>This inspection only reports if the language level of the project or module is 8 or higher.</p>
|
||||
</body>
|
||||
</html>
|
||||
+42
-42
@@ -4,79 +4,79 @@ import java.util.stream.*;
|
||||
|
||||
public class RedundantStreamOptionalCall {
|
||||
public void test() {
|
||||
List<Integer> list = Stream.of(1, 2, 3).<warning descr="Redundant 'sorted' call: stream content is sorted again after that">sorted(Comparator.reverseOrder())</warning>
|
||||
List<Integer> list = Stream.of(1, 2, 3).<warning descr="Redundant 'sorted()' call: there is a subsequent 'sorted()' call in the chain">sorted(Comparator.reverseOrder())</warning>
|
||||
.filter(x -> x > 0).sorted().collect(Collectors.toList());
|
||||
if(Stream.of(1, 2, 3).<warning descr="Redundant 'sorted' call: subsequent 'allMatch' call doesn't depend on the sort order">sorted()</warning>.filter(x -> x > 0).allMatch(x -> x < 10)) {
|
||||
if(Stream.of(1, 2, 3).<warning descr="Redundant 'sorted()' call: subsequent 'allMatch()' call doesn't depend on the sort order">sorted()</warning>.filter(x -> x > 0).allMatch(x -> x < 10)) {
|
||||
return;
|
||||
}
|
||||
if(Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted' call: subsequent 'count' call doesn't depend on the sort order">sorted(String.CASE_INSENSITIVE_ORDER)</warning>.count() > 0) {
|
||||
if(Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted()' call: subsequent 'count()' call doesn't depend on the sort order">sorted(String.CASE_INSENSITIVE_ORDER)</warning>.count() > 0) {
|
||||
return;
|
||||
}
|
||||
long first = Stream.of(1, 2, 3).distinct().sorted().skip(1).limit(2).<warning descr="Redundant 'distinct' call: there already was a 'distinct' call in the chain">distinct()</warning>
|
||||
long first = Stream.of(1, 2, 3).distinct().sorted().skip(1).limit(2).<warning descr="Redundant 'distinct()' call: there is a previous 'distinct()' call in the chain">distinct()</warning>
|
||||
.findFirst().orElse(0);
|
||||
Object[] objects = Stream.of(1, 2, 3).distinct().map(x -> x*2).distinct().toArray();
|
||||
Object[] objects2 = Stream.of(1, 2, 3).distinct().<warning descr="Redundant 'filter' call: predicate is always true">filter(x -> true)</warning>.
|
||||
<warning descr="Redundant 'distinct' call: there already was a 'distinct' call in the chain">distinct()</warning>.toArray();
|
||||
Object xyz = Optional.of(123).<warning descr="Redundant 'map' call">map(integer -> Integer.valueOf(integer))</warning>.orElse(null);
|
||||
Object xyz2 = Optional.of(123).<warning descr="Redundant 'map' call">map(Integer::valueOf)</warning>.orElse(null);
|
||||
Object xyz3 = Optional.of(123).<warning descr="Redundant 'map' call">map(Integer::intValue)</warning>.orElse(null);
|
||||
Object[] objects2 = Stream.of(1, 2, 3).distinct().<warning descr="Redundant 'filter()' call: predicate is always 'true'">filter(x -> true)</warning>.
|
||||
<warning descr="Redundant 'distinct()' call: there is a previous 'distinct()' call in the chain">distinct()</warning>.toArray();
|
||||
Object xyz = Optional.of(123).<warning descr="Redundant 'map()' call">map(integer -> Integer.valueOf(integer))</warning>.orElse(null);
|
||||
Object xyz2 = Optional.of(123).<warning descr="Redundant 'map()' call">map(Integer::valueOf)</warning>.orElse(null);
|
||||
Object xyz3 = Optional.of(123).<warning descr="Redundant 'map()' call">map(Integer::intValue)</warning>.orElse(null);
|
||||
Object xyz4 = Optional.of(123).map(Integer::longValue).orElse(null);
|
||||
Object xyz5 = IntStream.of(123).<warning descr="Redundant 'map' call">map(i -> Integer.valueOf(i))</warning>.count();
|
||||
Object xyz6 = Stream.of(123).<warning descr="Redundant 'map' call">map(i -> Integer.valueOf(i))</warning>.count();
|
||||
Optional.of("xyz").<warning descr="Redundant 'flatMap' call">flatMap(Optional::ofNullable)</warning>.ifPresent(System.out::println);
|
||||
Optional.of("xyz").<warning descr="Redundant 'flatMap' call">flatMap(Optional::of)</warning>.ifPresent(System.out::println);
|
||||
Object xyz5 = IntStream.of(123).<warning descr="Redundant 'map()' call">map(i -> Integer.valueOf(i))</warning>.count();
|
||||
Object xyz6 = Stream.of(123).<warning descr="Redundant 'map()' call">map(i -> Integer.valueOf(i))</warning>.count();
|
||||
Optional.of("xyz").<warning descr="Redundant 'flatMap()' call">flatMap(Optional::ofNullable)</warning>.ifPresent(System.out::println);
|
||||
Optional.of("xyz").<warning descr="Redundant 'flatMap()' call">flatMap(Optional::of)</warning>.ifPresent(System.out::println);
|
||||
|
||||
Optional.of(123).<warning descr="Redundant 'filter' call: predicate is always true">filter(x -> true)</warning>.ifPresent(System.out::println);
|
||||
Optional.of(123).<warning descr="Redundant 'filter()' call: predicate is always 'true'">filter(x -> true)</warning>.ifPresent(System.out::println);
|
||||
double avg = IntStream.range(0, 100).distinct()
|
||||
.asLongStream().<warning descr="Redundant 'distinct' call: there already was a 'distinct' call in the chain">distinct()</warning>.average().orElse(0);
|
||||
.asLongStream().<warning descr="Redundant 'distinct()' call: there is a previous 'distinct()' call in the chain">distinct()</warning>.average().orElse(0);
|
||||
|
||||
LongStream.range(0, 100).<warning descr="Redundant 'parallel' call: there's subsequent 'sequential' call which overrides this call">parallel()</warning>
|
||||
LongStream.range(0, 100).<warning descr="Redundant 'parallel()' call: there is a subsequent 'sequential()' call which overrides this call">parallel()</warning>
|
||||
.boxed().map(x -> x*2).sorted().sequential().forEach(System.out::println);
|
||||
Stream.of(0, 100).map(x -> x*2).<warning descr="Redundant 'parallel' call: there's subsequent 'parallel' call which overrides this call">parallel()</warning>
|
||||
Stream.of(0, 100).map(x -> x*2).<warning descr="Redundant 'parallel()' call: there is a subsequent 'parallel()' call which overrides this call">parallel()</warning>
|
||||
.filter(x -> x > 0).sorted().parallel().forEach(System.out::println);
|
||||
IntStream.of(0, 100).map(x -> x*2).<warning descr="Redundant 'sequential' call: there's subsequent 'sequential' call which overrides this call">sequential()</warning>
|
||||
IntStream.of(0, 100).map(x -> x*2).<warning descr="Redundant 'sequential()' call: there is a subsequent 'sequential()' call which overrides this call">sequential()</warning>
|
||||
.filter(x -> x > 0).distinct().sequential().forEach(System.out::println);
|
||||
Stream.of(0, 100).map(x -> x*2).<warning descr="Redundant 'sequential' call: there's subsequent 'parallel' call which overrides this call">sequential()</warning>
|
||||
Stream.of(0, 100).map(x -> x*2).<warning descr="Redundant 'sequential()' call: there is a subsequent 'parallel()' call which overrides this call">sequential()</warning>
|
||||
.filter(x -> x > 0).limit(10).parallel().forEach(System.out::println);
|
||||
Stream.of("xyz").parallel().<warning descr="Redundant 'sorted' call: stream contains at most one element">sorted()</warning>.collect(Collectors.toList()).stream().sequential().forEach(System.out::println);
|
||||
Stream.of("xyz").parallel().<warning descr="Redundant 'sorted()' call: stream contains at most one element">sorted()</warning>.collect(Collectors.toList()).stream().sequential().forEach(System.out::println);
|
||||
|
||||
IntStream.range(0, 100).unordered().filter(x -> x > 50).<warning descr="Redundant 'unordered' call: there already was an 'unordered' call in the chain">unordered()</warning>.forEach(System.out::println);
|
||||
IntStream.range(0, 100).unordered().filter(x -> x > 50).<warning descr="Redundant 'unordered()' call: there is a previous 'unordered()' call in the chain">unordered()</warning>.forEach(System.out::println);
|
||||
IntStream.range(0, 100).unordered().filter(x -> x > 50).sorted().unordered().forEach(System.out::println);
|
||||
|
||||
Collection<String> collection = Arrays.asList("foo", "foo", "bar");
|
||||
Set<String> set1 = collection.stream().<warning descr="Redundant 'distinct' call: elements will be distinct anyways when collected to the Set">distinct()</warning>.collect(Collectors.toSet());
|
||||
Set<String> set2 = collection.stream().<warning descr="Redundant 'sorted' call: subsequent 'toSet' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toSet());
|
||||
Set<String> set3 = collection.stream().<warning descr="Redundant 'sorted' call: subsequent 'toSet' call doesn't depend on the sort order">sorted()</warning>.<warning descr="Redundant 'distinct' call: elements will be distinct anyways when collected to the Set">distinct()</warning>.collect(Collectors.toSet());
|
||||
Set<String> set4 = collection.stream().<warning descr="Redundant 'distinct' call: elements will be distinct anyways when collected to the Set">distinct()</warning>.<warning descr="Redundant 'sorted' call: subsequent 'toSet' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toSet());
|
||||
Set<String> set1 = collection.stream().<warning descr="Redundant 'distinct()' call: elements will be distinct anyway when collected to a Set">distinct()</warning>.collect(Collectors.toSet());
|
||||
Set<String> set2 = collection.stream().<warning descr="Redundant 'sorted()' call: subsequent 'toSet()' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toSet());
|
||||
Set<String> set3 = collection.stream().<warning descr="Redundant 'sorted()' call: subsequent 'toSet()' call doesn't depend on the sort order">sorted()</warning>.<warning descr="Redundant 'distinct()' call: elements will be distinct anyway when collected to a Set">distinct()</warning>.collect(Collectors.toSet());
|
||||
Set<String> set4 = collection.stream().<warning descr="Redundant 'distinct()' call: elements will be distinct anyway when collected to a Set">distinct()</warning>.<warning descr="Redundant 'sorted()' call: subsequent 'toSet()' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toSet());
|
||||
List<String> list1 = collection.stream().distinct().collect(Collectors.toList());
|
||||
List<String> list2 = collection.stream().sorted().collect(Collectors.toList());
|
||||
Map<Integer, String> map1 = collection.stream().<warning descr="Redundant 'sorted' call: subsequent 'toMap' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toMap(Integer::valueOf, x -> x));
|
||||
Map<Integer, String> map1 = collection.stream().<warning descr="Redundant 'sorted()' call: subsequent 'toMap()' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toMap(Integer::valueOf, x -> x));
|
||||
Map<Integer, String> map2 = collection.stream().sorted().collect(Collectors.toMap(Integer::valueOf, x -> x, (a,b) ->a, LinkedHashMap::new));
|
||||
Set<String> set5 = collection.stream().<warning descr="Redundant 'sorted' call: subsequent 'toCollection' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toCollection(HashSet::new));
|
||||
Set<String> set6 = collection.stream().<warning descr="Redundant 'sorted' call: subsequent 'toCollection' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toCollection(() -> new HashSet<>()));
|
||||
Set<String> set5 = collection.stream().<warning descr="Redundant 'sorted()' call: subsequent 'toCollection()' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toCollection(HashSet::new));
|
||||
Set<String> set6 = collection.stream().<warning descr="Redundant 'sorted()' call: subsequent 'toCollection()' call doesn't depend on the sort order">sorted()</warning>.collect(Collectors.toCollection(() -> new HashSet<>()));
|
||||
Set<String> set6a = collection.stream().sorted().collect(Collectors.toCollection(() -> new LinkedHashSet<>()));
|
||||
Set<String> set7 = collection.stream().<warning descr="Redundant 'distinct' call: elements will be distinct anyways when collected to the Set">distinct()</warning>.collect(Collectors.toCollection(HashSet::new));
|
||||
Set<String> set8 = collection.stream().<warning descr="Redundant 'distinct' call: elements will be distinct anyways when collected to the Set">distinct()</warning>.collect(Collectors.toCollection(() -> new HashSet<>()));
|
||||
Set<String> set8a = collection.stream().<warning descr="Redundant 'distinct' call: elements will be distinct anyways when collected to the Set">distinct()</warning>.collect(Collectors.toCollection(() -> new LinkedHashSet<>()));
|
||||
Set<String> set7 = collection.stream().<warning descr="Redundant 'distinct()' call: elements will be distinct anyway when collected to a Set">distinct()</warning>.collect(Collectors.toCollection(HashSet::new));
|
||||
Set<String> set8 = collection.stream().<warning descr="Redundant 'distinct()' call: elements will be distinct anyway when collected to a Set">distinct()</warning>.collect(Collectors.toCollection(() -> new HashSet<>()));
|
||||
Set<String> set8a = collection.stream().<warning descr="Redundant 'distinct()' call: elements will be distinct anyway when collected to a Set">distinct()</warning>.collect(Collectors.toCollection(() -> new LinkedHashSet<>()));
|
||||
|
||||
IntStream.of(123).mapToObj(String::valueOf).<warning descr="Redundant 'sorted' call: stream contains at most one element">sorted()</warning>;
|
||||
LongStream.of(123).filter(x -> x > 0).mapToObj(String::valueOf).<warning descr="Redundant 'distinct' call: stream contains at most one element">distinct()</warning>;
|
||||
IntStream.of(123).mapToObj(String::valueOf).<warning descr="Redundant 'sorted()' call: stream contains at most one element">sorted()</warning>;
|
||||
LongStream.of(123).filter(x -> x > 0).mapToObj(String::valueOf).<warning descr="Redundant 'distinct()' call: stream contains at most one element">distinct()</warning>;
|
||||
LongStream.of(123).filter(x -> x > 0).mapToObj(String::valueOf).flatMap(x -> Stream.of(x, x+x)).distinct();
|
||||
Stream.of("foo").flatMap(x -> Stream.of(x, x)).parallel();
|
||||
Stream.of("foo").flatMap(x -> Stream.of(x, x)).<warning descr="Redundant 'parallel' call: stream created from single element will not be parallelized">parallel()</warning>.forEach(System.out::println);
|
||||
Stream.of("foo").flatMap(x -> Stream.of(x, x)).<warning descr="Redundant 'parallel()' call: stream created from single element will not be parallelized">parallel()</warning>.forEach(System.out::println);
|
||||
|
||||
Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted' call: stream content is sorted again after that">sorted()</warning>.sorted(Comparator.<String>naturalOrder().reversed());
|
||||
Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted()' call: there is a subsequent 'sorted()' call in the chain">sorted()</warning>.sorted(Comparator.<String>naturalOrder().reversed());
|
||||
Stream.of("foo", "bar", "baz").sorted().sorted(Comparator.comparing(x -> x.charAt(0) == 'b'));
|
||||
Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted' call: stream content is sorted again after that">sorted()</warning>.sorted(Comparator.comparing(x -> x.charAt(0) == 'b')).sorted(Comparator.reverseOrder());
|
||||
Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted()' call: there is a subsequent 'sorted()' call in the chain">sorted()</warning>.sorted(Comparator.comparing(x -> x.charAt(0) == 'b')).sorted(Comparator.reverseOrder());
|
||||
|
||||
Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted' call: subsequent 'max' call doesn't depend on the sort order">sorted(String.CASE_INSENSITIVE_ORDER)</warning>.max(String.CASE_INSENSITIVE_ORDER.reversed());
|
||||
Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted' call: subsequent 'min' call doesn't depend on the sort order">sorted(String.CASE_INSENSITIVE_ORDER)</warning>.min(String.CASE_INSENSITIVE_ORDER);
|
||||
Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted()' call: subsequent 'max()' call doesn't depend on the sort order">sorted(String.CASE_INSENSITIVE_ORDER)</warning>.max(String.CASE_INSENSITIVE_ORDER.reversed());
|
||||
Stream.of("foo", "bar", "baz").<warning descr="Redundant 'sorted()' call: subsequent 'min()' call doesn't depend on the sort order">sorted(String.CASE_INSENSITIVE_ORDER)</warning>.min(String.CASE_INSENSITIVE_ORDER);
|
||||
Stream.of("foo", "bar", "baz").sorted(String.CASE_INSENSITIVE_ORDER).min(Comparator.naturalOrder());
|
||||
}
|
||||
|
||||
public static void flatMapStreamOf(String[] arr1, String[] arr2) {
|
||||
Stream.of(1,2,3,4,5).<warning descr="Redundant 'flatMap' call">flatMap(Stream::of)</warning>.toArray();
|
||||
Stream.of(1,2,3,4,5).<warning descr="Redundant 'flatMap' call">flatMap(t -> Stream.of(t))</warning>.toArray();
|
||||
Stream.of(1,2,3,4,5).<warning descr="Redundant 'flatMap()' call">flatMap(Stream::of)</warning>.toArray();
|
||||
Stream.of(1,2,3,4,5).<warning descr="Redundant 'flatMap()' call">flatMap(t -> Stream.of(t))</warning>.toArray();
|
||||
Stream.of(arr1, arr2).flatMap(Stream::of).toArray();
|
||||
}
|
||||
|
||||
@@ -84,10 +84,10 @@ public class RedundantStreamOptionalCall {
|
||||
return objectStreams.<Stream<SomeClazz>>map(Stream::distinct).flatMap(Function.identity());
|
||||
}
|
||||
public static Stream<SomeClazz> fun2(Stream<Stream<SomeClazz>> objectStreams) {
|
||||
return objectStreams.map(Stream::distinct).<warning descr="Redundant 'flatMap' call: previous 'map' call can replace the 'flatMap' step">flatMap(Function.identity())</warning>;
|
||||
return objectStreams.map(Stream::distinct).<warning descr="Redundant 'flatMap()' call: previous 'map()' call can replace the 'flatMap()' step">flatMap(Function.identity())</warning>;
|
||||
}
|
||||
public static Stream<SomeClazz> fun3(Stream<Stream<SomeClazz>> objectStreams) {
|
||||
return objectStreams.<warning descr="Redundant 'map' call">map(Function.identity())</warning>.flatMap(Function.identity());
|
||||
return objectStreams.<warning descr="Redundant 'map()' call">map(Function.identity())</warning>.flatMap(Function.identity());
|
||||
}
|
||||
private static class SomeClazz {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove 'map' call" "true"
|
||||
// "Remove 'map()' call" "true"
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'flatMap' call" "true"
|
||||
// "Remove 'flatMap()' call" "true"
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove 'map' call" "true"
|
||||
// "Remove 'map()' call" "true"
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove 'flatMap' call" "true"
|
||||
// "Remove 'flatMap()' call" "true"
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
@@ -596,21 +596,21 @@ inspection.redundant.record.constructor.description=Redundant record constructor
|
||||
inspection.redundant.record.constructor.fix.family.name=Convert canonical constructor to compact form
|
||||
inspection.redundant.record.constructor.statement.message=Redundant field assignment in compact constructor
|
||||
inspection.redundant.stream.optional.call.explanation.at.most.one=stream contains at most one element
|
||||
inspection.redundant.stream.optional.call.explanation.distinct=there already was a 'distinct' call in the chain
|
||||
inspection.redundant.stream.optional.call.explanation.distinct.set=elements will be distinct anyways when collected to the Set
|
||||
inspection.redundant.stream.optional.call.explanation.filter=predicate is always true
|
||||
inspection.redundant.stream.optional.call.explanation.map.flatMap=previous 'map' call can replace the 'flatMap' step
|
||||
inspection.redundant.stream.optional.call.explanation.parallel=there''s subsequent ''{0}'' call which overrides this call
|
||||
inspection.redundant.stream.optional.call.explanation.distinct=there is a previous 'distinct()' call in the chain
|
||||
inspection.redundant.stream.optional.call.explanation.distinct.set=elements will be distinct anyway when collected to a Set
|
||||
inspection.redundant.stream.optional.call.explanation.filter=predicate is always 'true'
|
||||
inspection.redundant.stream.optional.call.explanation.map.flatMap=previous 'map()' call can replace the 'flatMap()' step
|
||||
inspection.redundant.stream.optional.call.explanation.parallel=there is a subsequent ''{0}()'' call which overrides this call
|
||||
inspection.redundant.stream.optional.call.explanation.parallel.single=stream created from single element will not be parallelized
|
||||
inspection.redundant.stream.optional.call.explanation.sorted=subsequent ''{0}'' call doesn''t depend on the sort order
|
||||
inspection.redundant.stream.optional.call.explanation.sorted.twice=stream content is sorted again after that
|
||||
inspection.redundant.stream.optional.call.explanation.unordered=there already was an 'unordered' call in the chain
|
||||
inspection.redundant.stream.optional.call.explanation.sorted=subsequent ''{0}()'' call doesn''t depend on the sort order
|
||||
inspection.redundant.stream.optional.call.explanation.sorted.twice=there is a subsequent 'sorted()' call in the chain
|
||||
inspection.redundant.stream.optional.call.explanation.unordered=there is a previous 'unordered()' call in the chain
|
||||
inspection.redundant.stream.optional.call.fix.collect.to.ordered.family.name=Collect to 'LinkedHashSet'
|
||||
inspection.redundant.stream.optional.call.fix.family.name=Remove redundant chain call
|
||||
inspection.redundant.stream.optional.call.fix.name=Remove ''{0}'' call
|
||||
inspection.redundant.stream.optional.call.message=Redundant ''{0}'' call
|
||||
inspection.redundant.stream.optional.call.message.with.explanation=Redundant ''{0}'' call: {1}
|
||||
inspection.redundant.stream.optional.call.option.streamboxing=Report redundant boxing in Stream.map
|
||||
inspection.redundant.stream.optional.call.fix.name=Remove ''{0}()'' call
|
||||
inspection.redundant.stream.optional.call.message=Redundant ''{0}()'' call
|
||||
inspection.redundant.stream.optional.call.message.with.explanation=Redundant ''{0}()'' call: {1}
|
||||
inspection.redundant.stream.optional.call.option.streamboxing=Report redundant boxing in Stream.map()
|
||||
inspection.reflect.handle.invocation.argument.not.array=Argument is not an array type
|
||||
inspection.reflect.handle.invocation.argument.not.exact=Argument type should be exactly ''{0}''
|
||||
inspection.reflect.handle.invocation.primitive.argument.null=Argument of type ''{0}'' cannot be ''null''
|
||||
@@ -1313,7 +1313,7 @@ inspection.read.write.string.can.be.used.display.name='Files.readString()' or 'F
|
||||
inspection.java.9.collection.factory.display.name=Immutable collection creation can be replaced with collection factory call
|
||||
inspection.explicit.argument.can.be.lambda.display.name=Explicit argument can be lambda
|
||||
inspection.excessive.lambda.usage.display.name=Excessive lambda usage
|
||||
inspection.redundant.stream.optional.call.display.name=Redundant step in Stream or Optional call chain
|
||||
inspection.redundant.stream.optional.call.display.name=Redundant step in 'Stream' or 'Optional' call chain
|
||||
inspection.obvious.null.check.display.name=Null-check method is called with obviously non-null argument
|
||||
inspection.simplify.stream.api.call.chains.display.name=Stream API call chain can be simplified
|
||||
inspection.simplify.optional.call.chains.display.name=Optional call chain can be simplified
|
||||
|
||||
Reference in New Issue
Block a user