Commit de5b37e
Fix FieldsBelowInit and KotlinGenericsCast: Move properties above init block (facebook#55357)
Summary:
Fixed FieldsBelowInit lint errors in BridgelessReactContext.kt.
Moved property declarations (devSupportManager, defaultHardwareBackBtnHandler) above the init block to ensure proper initialization order.
Also added Suppress for KotlinGenericsCast warning on the generic cast that is necessary for the proxy implementation.
changelog: [internal] internal
Reviewed By: cortinico
Differential Revision: D917319381 parent 264eba3 commit de5b37e
File tree
1 file changed
+7
-7
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime
1 file changed
+7
-7
lines changedLines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
103 | 109 | | |
104 | 110 | | |
105 | 111 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | | - | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 184 | | |
0 commit comments