Skip to content

Commit ffd7cf2

Browse files
committed
Fix IntelliJ Parse Error
1 parent b0e2f79 commit ffd7cf2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/org/mybatis/dynamic/sql/where/condition/IsIn.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import java.util.Collection;
2222
import java.util.Collections;
2323
import java.util.List;
24+
import java.util.function.BiFunction;
2425
import java.util.function.Function;
2526
import java.util.function.Predicate;
2627
import java.util.function.UnaryOperator;
@@ -91,7 +92,8 @@ public IsIn<T> filter(Predicate<? super T> predicate) {
9192
* that will not render.
9293
*/
9394
public <R> IsIn<R> map(Function<? super T, ? extends R> mapper) {
94-
return mapSupport(mapper, IsIn::new, IsIn::empty);
95+
// the cast is a work around for a parse error in IntelliJ
96+
return mapSupport(mapper, (BiFunction<Collection<R>, Callback, IsIn<R>>) IsIn::new, IsIn::empty);
9597
}
9698

9799
@SafeVarargs

src/main/java/org/mybatis/dynamic/sql/where/condition/IsNotIn.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import java.util.Collection;
2222
import java.util.Collections;
2323
import java.util.List;
24+
import java.util.function.BiFunction;
2425
import java.util.function.Function;
2526
import java.util.function.Predicate;
2627
import java.util.function.UnaryOperator;
@@ -93,7 +94,8 @@ public IsNotIn<T> filter(Predicate<? super T> predicate) {
9394
* that will not render.
9495
*/
9596
public <R> IsNotIn<R> map(Function<? super T, ? extends R> mapper) {
96-
return mapSupport(mapper, IsNotIn::new, IsNotIn::empty);
97+
// the cast is a work around for a parse error in IntelliJ
98+
return mapSupport(mapper, (BiFunction<Collection<R>, Callback, IsNotIn<R>>) IsNotIn::new, IsNotIn::empty);
9799
}
98100

99101
@SafeVarargs

0 commit comments

Comments
 (0)