Skip to content

Commit 1d8dc92

Browse files
[TrimmableTypeMap][Core C] Use null pattern in interface JNI check
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 951a868 commit 1d8dc92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Android.Sdk.TrimmableTypeMap/Scanner/JavaPeerScanner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ List<string> ResolveImplementedInterfaceJavaNames (TypeDefinition typeDef, Assem
313313
foreach (var implHandle in interfaceImpls) {
314314
var impl = index.Reader.GetInterfaceImplementation (implHandle);
315315
var ifaceJniName = ResolveInterfaceJniName (impl.Interface, index);
316-
if (ifaceJniName != null) {
316+
if (ifaceJniName is not null) {
317317
result.Add (ifaceJniName);
318318
}
319319
}

0 commit comments

Comments
 (0)