forked from JavaTX/JavaCompilerCore
IDEA wants it that way
This commit is contained in:
parent
29112e7bd7
commit
3b439a49cd
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user