Skip to content

Commit

Permalink
Traverse interface inheritance tree to identify java.lang.AutoCloseab…
Browse files Browse the repository at this point in the history
…le (#590)
  • Loading branch information
masesdevelopers authored Jan 10, 2025
1 parent d077c9c commit 62f40bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/JNetReflector/InternalExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ public static bool IsCloseable(this Class entry)
if (entry.TypeName == autoCloseable) return true;
foreach (var interfaceToCheck in entry.Interfaces)
{
if (interfaceToCheck.TypeName == autoCloseable) return true;
if (IsCloseable(interfaceToCheck)) return true;
}
return false;
}
Expand Down

0 comments on commit 62f40bd

Please sign in to comment.