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

Method prepRet

src/jvm/clojure/lang/Reflector.java:695–707  ·  view source on GitHub ↗
(Class c, Object x)

Source from the content-addressed store, hash-verified

693}
694
695public static Object prepRet(Class c, Object x){
696 if (!(c.isPrimitive() || c == Boolean.class))
697 return x;
698 if(x instanceof Boolean)
699 return ((Boolean) x)?Boolean.TRUE:Boolean.FALSE;
700// else if(x instanceof Integer)
701// {
702// return ((Integer)x).longValue();
703// }
704// else if(x instanceof Float)
705// return Double.valueOf(((Float) x).doubleValue());
706 return x;
707}
708
709}

Callers 5

invokeMatchingMethodMethod · 0.95
getStaticFieldMethod · 0.95
getInstanceFieldMethod · 0.95
invokeInstanceMemberMethod · 0.95
nthFromMethod · 0.95

Calls 1

isPrimitiveMethod · 0.80

Tested by

no test coverage detected