Skip to content

Commit 4b435a7

Browse files
Changes: dotnet/java-interop@d909947...8a3e162 * [Java.Interop] Generic Type Definitions are allowed Other changes: * Revert de49d96, as we no longer need to check `!type.ContainsGenericParameters` Co-authored-by: Jonathan Peppers <[email protected]>
1 parent 15f88dc commit 4b435a7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Mono.Android/Android.Runtime/JNIEnv.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,7 @@ public static string GetJniName (Type type)
477477
if (type == null)
478478
throw new ArgumentNullException ("type");
479479

480-
JniTypeSignature sig = default;
481-
if (!type.ContainsGenericParameters)
482-
sig = JNIEnvInit.androidRuntime?.TypeManager.GetTypeSignature (type) ?? default;
480+
JniTypeSignature sig = JNIEnvInit.androidRuntime?.TypeManager.GetTypeSignature (type) ?? default;
483481

484482
return sig.SimpleReference == null
485483
? JavaNativeTypeManager.ToJniName (type)

0 commit comments

Comments
 (0)