Commit c9d1e05
Fix FieldsBelowInit and KotlinGenericsCast: Move properties above init block (#55357)
Summary:
Pull Request resolved: #55357
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: D91731938
fbshipit-source-id: 194fa6ae5d484d353b553bc0b42cf5a37c15877c1 parent 4db3ca8 commit c9d1e05
1 file changed
Lines changed: 7 additions & 7 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime
Lines 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