Skip to content

Commit 2830cc8

Browse files
Fix array type leakage
1 parent e25c179 commit 2830cc8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkgs/jni/lib/src/jarray.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,16 @@ final class $JArray$Type$<E extends JObject?> extends JType<JArray<E>> {
8686
class JArray<E extends JObject?> extends JObject with Iterable<E> {
8787
final JType<E> elementType;
8888

89+
@internal
8990
@override
90-
final $JArray$Type$<E> $type;
91+
final JType<JArray<E>> $type;
9192

9293
/// The type which includes information such as the signature of this class.
93-
static $JArray$Type$<E> type<E extends JObject?>(JType<E> innerType) =>
94+
static JType<JArray<E>> type<E extends JObject?>(JType<E> innerType) =>
9495
$JArray$Type$<E>(innerType);
9596

9697
/// The type which includes information such as the signature of this class.
97-
static $JArray$NullableType$<E> nullableType<E extends JObject?>(
98+
static JType<JArray<E>?> nullableType<E extends JObject?>(
9899
JType<E> innerType) =>
99100
$JArray$NullableType$<E>(innerType);
100101

0 commit comments

Comments
 (0)