mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
allow all primitive-number-type casts
This commit is contained in:
@@ -1063,10 +1063,13 @@ function isTypeCastable(source_type, cast_type) {
|
|||||||
case 'B':
|
case 'B':
|
||||||
case 'S':
|
case 'S':
|
||||||
case 'I':
|
case 'I':
|
||||||
case 'J': return /^([BSIJCFD]|Ljava\/lang\/(Byte|Short|Integer|Long|Character);)$/.test(source_type.typeSignature);
|
case 'J':
|
||||||
|
case 'C':
|
||||||
case 'F':
|
case 'F':
|
||||||
case 'D': return /^([BSIJCFD]|Ljava\/lang\/(Byte|Short|Integer|Long|Character|Float|Double);)$/.test(source_type.typeSignature);
|
case 'D':
|
||||||
case 'Z': return /^([Z]|Ljava\/lang\/(Boolean);)$/.test(source_type.typeSignature);
|
return /^([BSIJCFD]|Ljava\/lang\/(Byte|Short|Integer|Long|Character|Float|Double);)$/.test(source_type.typeSignature);
|
||||||
|
case 'Z':
|
||||||
|
return /^([Z]|Ljava\/lang\/(Boolean);)$/.test(source_type.typeSignature);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user