MCPcopy Index your code
hub / github.com/clojure/clojure / toInvokerParamType

Method toInvokerParamType

src/jvm/clojure/lang/Compiler.java:1676–1683  ·  view source on GitHub ↗
(Class c)

Source from the content-addressed store, hash-verified

1674
1675 // Invokers support only long, double, Object params; widen numerics
1676 private static Class toInvokerParamType(Class c) {
1677 if (c.equals(Byte.TYPE) || c.equals(Short.TYPE) || c.equals(Integer.TYPE) || c.equals(Long.TYPE)) {
1678 return Long.TYPE;
1679 } else if (c.equals(Float.TYPE) || c.equals(Double.TYPE)) {
1680 return Double.TYPE;
1681 }
1682 return Object.class;
1683 }
1684
1685 /**
1686 * If targetClass is FI and has an adaptable functional method

Callers 1

maybeEmitFIAdapterMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected