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

Method shortCast

src/jvm/clojure/lang/RT.java:1189–1197  ·  view source on GitHub ↗
(Object x)

Source from the content-addressed store, hash-verified

1187}
1188
1189static public short shortCast(Object x){
1190 if(x instanceof Short)
1191 return ((Short) x).shortValue();
1192 long n = longCast(x);
1193 if(n < Short.MIN_VALUE || n > Short.MAX_VALUE)
1194 throw new IllegalArgumentException("Value out of range for short: " + x);
1195
1196 return (short) n;
1197}
1198
1199static public short shortCast(byte x){
1200 return x;

Callers 15

coerceAdapterReturnMethod · 0.95
invokeSMethod · 0.95
invokeLSMethod · 0.95
invokeDSMethod · 0.95
invokeOSMethod · 0.95
invokeLLSMethod · 0.95
invokeLOSMethod · 0.95
invokeOLSMethod · 0.95
invokeDDSMethod · 0.95
invokeLDSMethod · 0.95
invokeDLSMethod · 0.95
invokeOOSMethod · 0.95

Calls 2

longCastMethod · 0.95
shortValueMethod · 0.80

Tested by

no test coverage detected