mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Extract nullable arrays as Java arrays
Nullability doesn't matter to this conversion since Java's arrays are reftypes
This commit is contained in:
committed by
Ian Lynagh
parent
80e2140ca7
commit
a92e20e526
@@ -509,7 +509,7 @@ class X {
|
||||
}
|
||||
*/
|
||||
|
||||
s.isArray() && s.arguments.isNotEmpty() -> {
|
||||
(s.isArray() || s.isNullableArray()) && s.arguments.isNotEmpty() -> {
|
||||
// TODO: fix this, this is only a dummy implementation to let the tests pass
|
||||
val elementType = useType(s.getArrayElementType(pluginContext.irBuiltIns))
|
||||
val id = tw.getLabelFor<DbArray>("@\"array;1;{$elementType}\"")
|
||||
|
||||
Reference in New Issue
Block a user