(Object x)
| 1231 | } |
| 1232 | |
| 1233 | static public int intCast(Object x){ |
| 1234 | if(x instanceof Integer) |
| 1235 | return ((Integer)x).intValue(); |
| 1236 | if(x instanceof Number) |
| 1237 | { |
| 1238 | long n = longCast(x); |
| 1239 | return intCast(n); |
| 1240 | } |
| 1241 | return ((Character) x).charValue(); |
| 1242 | } |
| 1243 | |
| 1244 | static public int intCast(char x){ |
| 1245 | return x; |
no test coverage detected