IDEA wants it that way

This commit is contained in:
Victorious3 2022-06-17 15:16:56 +02:00
parent 29112e7bd7
commit 3b439a49cd

View File

@ -74,7 +74,7 @@ public class ASTToTargetAST {
for (var s : all) {
sigma = s;
List<MethodParameter> params = convert(input.getParameterList());
if (!parameterSet.stream().filter(p -> p.equals(params)).findFirst().isPresent()) {
if (parameterSet.stream().noneMatch(p -> p.equals(params))) {
result.add(new TargetConstructor(input.modifier, new TargetRefType(owner.getClassName().getClassName()), params, convert(input.block)));
parameterSet.add(params);
}
@ -91,7 +91,7 @@ public class ASTToTargetAST {
for (var s : all) {
sigma = s;
List<MethodParameter> params = convert(input.getParameterList());
if (!parameterSet.stream().filter(p -> p.equals(params)).findFirst().isPresent()) {
if (parameterSet.stream().noneMatch(p -> p.equals(params))) {
result.add(new TargetMethod(
input.modifier,
new TargetRefType(owner.getClassName().getClassName()),