[jOOQ/jOOQ#12425] Remove internal UOperatorN::transform methods

The methods leak into public API but aren't really necessary. Better remove them.
This commit is contained in:
Lukas Eder 2021-12-30 17:03:31 +01:00
parent 34526c71f6
commit 996c54b703
6 changed files with 5 additions and 16 deletions

View File

@ -40,6 +40,7 @@ package org.jooq;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Collector;

View File

@ -94,7 +94,7 @@ implements
@Override
public final void accept0(Context<?> ctx) {
ctx.visit(transform(Add::new));
ctx.visit(new Add($arg1(), $arg2()));
}

View File

@ -94,7 +94,7 @@ implements
@Override
public final void accept0(Context<?> ctx) {
ctx.visit(transform(Div::new));
ctx.visit(new Div($arg1(), $arg2()));
}

View File

@ -94,7 +94,7 @@ implements
@Override
public final void accept0(Context<?> ctx) {
ctx.visit(transform(Mul::new));
ctx.visit(new Mul($arg1(), $arg2()));
}

View File

@ -94,7 +94,7 @@ implements
@Override
public final void accept0(Context<?> ctx) {
ctx.visit(transform(Sub::new));
ctx.visit(new Sub($arg1(), $arg2()));
}

View File

@ -5938,10 +5938,6 @@ public final class QOM {
@NotNull
Function1<? super Q1, ? extends R> constructor();
default <T> T transform(Function1<? super Q1, ? extends T> function) {
return function.apply($arg1());
}
@ -5977,10 +5973,6 @@ public final class QOM {
@NotNull
Function2<? super Q1, ? super Q2, ? extends R> constructor();
default <T> T transform(Function2<? super Q1, ? super Q2, ? extends T> function) {
return function.apply($arg1(), $arg2());
}
@ -6018,10 +6010,6 @@ public final class QOM {
@NotNull
Function3<? super Q1, ? super Q2, ? super Q3, ? extends R> constructor();
default <T> T transform(Function3<? super Q1, ? super Q2, ? super Q3, ? extends T> function) {
return function.apply($arg1(), $arg2(), $arg3());
}