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) {
|
for (var s : all) {
|
||||||
sigma = s;
|
sigma = s;
|
||||||
List<MethodParameter> params = convert(input.getParameterList());
|
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)));
|
result.add(new TargetConstructor(input.modifier, new TargetRefType(owner.getClassName().getClassName()), params, convert(input.block)));
|
||||||
parameterSet.add(params);
|
parameterSet.add(params);
|
||||||
}
|
}
|
||||||
@ -91,7 +91,7 @@ public class ASTToTargetAST {
|
|||||||
for (var s : all) {
|
for (var s : all) {
|
||||||
sigma = s;
|
sigma = s;
|
||||||
List<MethodParameter> params = convert(input.getParameterList());
|
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(
|
result.add(new TargetMethod(
|
||||||
input.modifier,
|
input.modifier,
|
||||||
new TargetRefType(owner.getClassName().getClassName()),
|
new TargetRefType(owner.getClassName().getClassName()),
|
||||||
|
Loading…
Reference in New Issue
Block a user