Skip to content

Commit 2d841c6

Browse files
committed
Check value in ALL_FUNCTIONS, not key
1 parent a2f93fc commit 2d841c6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scijava/scijava-ops/src/main/java/org/scijava/ops/function/FunctionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private FunctionUtils() {
6969
* @throws NullPointerException If {@code type} is {@code null}.
7070
*/
7171
public static boolean isFunction(Type type) {
72-
return ALL_FUNCTIONS.containsKey(Types.raw(type));
72+
return ALL_FUNCTIONS.containsValue(Types.raw(type));
7373
}
7474

7575
@SuppressWarnings({ "unchecked" })

scijava/scijava-ops/templates/main/java/org/scijava/ops/function/FunctionUtils.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public final class FunctionUtils {
5555
* @throws NullPointerException If {@code type} is {@code null}.
5656
*/
5757
public static boolean isFunction(Type type) {
58-
return ALL_FUNCTIONS.containsKey(Types.raw(type));
58+
return ALL_FUNCTIONS.containsValue(Types.raw(type));
5959
}
6060

6161
#foreach($arity in [0..$maxArity])

0 commit comments

Comments
 (0)