Commit a8f3e62
Simplify TryGetJniNameForType to use IJniNameProviderAttribute
Both RegisterAttribute and JniTypeSignatureAttribute implement
IJniNameProviderAttribute, so a single GetCustomAttributes check
covers both. Made the method internal+static so
TrimmableTypeMapTypeManager.GetSimpleReferences can reuse it
instead of duplicating the attribute lookup.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8eae12c commit a8f3e62
File tree
2 files changed
+8
-21
lines changed- src/Mono.Android/Microsoft.Android.Runtime
2 files changed
+8
-21
lines changedLines changed: 6 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | | - | |
| 102 | + | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
119 | 107 | | |
120 | 108 | | |
121 | 109 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 42 | + | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
0 commit comments