Consolidate isMessage() operation
This commit is contained in:
@@ -36,6 +36,11 @@ public interface FunctionInspector {
|
||||
|
||||
FunctionRegistration<?> getRegistration(Object function);
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated since 3.1 no longer used by the framework
|
||||
*/
|
||||
@Deprecated
|
||||
default boolean isMessage(Object function) {
|
||||
if (function == null) {
|
||||
return false;
|
||||
|
||||
@@ -191,9 +191,6 @@ public final class FunctionTypeUtils {
|
||||
@SuppressWarnings("unchecked")
|
||||
public static Type getInputType(Type functionType) {
|
||||
assertSupportedTypes(functionType);
|
||||
// if (isSupplier(functionType)) {
|
||||
// return getOutputType(functionType, index);
|
||||
// }
|
||||
if (functionType instanceof Class) {
|
||||
Class<?> functionClass = (Class<?>) functionType;
|
||||
if (Function.class.isAssignableFrom(functionClass)) {
|
||||
@@ -205,9 +202,6 @@ public final class FunctionTypeUtils {
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
// else if (Supplier.class.isAssignableFrom(functionClass)) {
|
||||
// functionType = TypeResolver.reify(Supplier.class, (Class<Supplier<?>>) functionClass);
|
||||
// }
|
||||
}
|
||||
|
||||
Type inputType = Object.class;
|
||||
|
||||
Reference in New Issue
Block a user