@@ -38,13 +38,13 @@ public static unsafe JniMethodInfo GetStaticMethodID (JniObjectReference type, R
38
38
}
39
39
40
40
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 )
46
46
{
47
- method = null ;
47
+ method = null ;
48
48
49
49
if ( ! type . IsValid )
50
50
throw new ArgumentException ( "Handle must be valid." , "type" ) ;
@@ -58,25 +58,25 @@ internal static unsafe bool TryGetStaticMethod (
58
58
thrown = JniNativeMethods . ExceptionOccurred ( env ) ;
59
59
}
60
60
61
- if ( thrown != IntPtr . Zero ) {
62
- JniNativeMethods . ExceptionClear ( env ) ;
61
+ if ( thrown != IntPtr . Zero ) {
62
+ JniNativeMethods . ExceptionClear ( env ) ;
63
63
JniEnvironment . References . RawDeleteLocalRef ( env , thrown ) ;
64
- thrown = IntPtr . Zero ;
65
- return false ;
66
- }
64
+ thrown = IntPtr . Zero ;
65
+ return false ;
66
+ }
67
67
68
68
Debug . Assert ( id != IntPtr . Zero ) ;
69
- if ( id == IntPtr . Zero ) {
70
- return false ;
71
- }
69
+ if ( id == IntPtr . Zero ) {
70
+ return false ;
71
+ }
72
72
73
73
#if DEBUG
74
74
method = new JniMethodInfo ( name . ToString ( ) , signature . ToString ( ) , id , isStatic : true ) ;
75
75
#else // DEBUG
76
76
method = new JniMethodInfo ( null ! , null ! , id , isStatic : true ) ;
77
77
#endif // DEBUG
78
78
79
- return true ;
79
+ return true ;
80
80
}
81
81
}
82
82
}
0 commit comments