@@ -38,13 +38,13 @@ public static unsafe JniMethodInfo GetStaticMethodID (JniObjectReference type, R
3838 }
3939
4040 internal static unsafe bool TryGetStaticMethod (
41- JniObjectReference type ,
42- ReadOnlySpan < byte > name ,
43- ReadOnlySpan < byte > signature ,
44- [ NotNullWhen ( true ) ]
45- out JniMethodInfo ? method )
41+ JniObjectReference type ,
42+ ReadOnlySpan < byte > name ,
43+ ReadOnlySpan < byte > signature ,
44+ [ NotNullWhen ( true ) ]
45+ out JniMethodInfo ? method )
4646 {
47- method = null ;
47+ method = null ;
4848
4949 if ( ! type . IsValid )
5050 throw new ArgumentException ( "Handle must be valid." , "type" ) ;
@@ -58,25 +58,25 @@ internal static unsafe bool TryGetStaticMethod (
5858 thrown = JniNativeMethods . ExceptionOccurred ( env ) ;
5959 }
6060
61- if ( thrown != IntPtr . Zero ) {
62- JniNativeMethods . ExceptionClear ( env ) ;
61+ if ( thrown != IntPtr . Zero ) {
62+ JniNativeMethods . ExceptionClear ( env ) ;
6363 JniEnvironment . References . RawDeleteLocalRef ( env , thrown ) ;
64- thrown = IntPtr . Zero ;
65- return false ;
66- }
64+ thrown = IntPtr . Zero ;
65+ return false ;
66+ }
6767
6868 Debug . Assert ( id != IntPtr . Zero ) ;
69- if ( id == IntPtr . Zero ) {
70- return false ;
71- }
69+ if ( id == IntPtr . Zero ) {
70+ return false ;
71+ }
7272
7373#if DEBUG
7474 method = new JniMethodInfo ( name . ToString ( ) , signature . ToString ( ) , id , isStatic : true ) ;
7575#else // DEBUG
7676 method = new JniMethodInfo ( null ! , null ! , id , isStatic : true ) ;
7777#endif // DEBUG
7878
79- return true ;
79+ return true ;
8080 }
8181 }
8282}
0 commit comments