Commit fc9940d
Fix FieldsBelowInit: Move property declarations before init block (#55513)
Summary:
Pull Request resolved: #55513
Fixed FieldsBelowInit lint warning in SurfaceHandlerBinding.kt.
Moved the property declarations (surfaceId, isRunning, moduleName) before the
init block to follow Kotlin best practices for initialization order.
Note: These are computed properties (getters) that call native methods, so the
warning was technically a false positive, but reordering improves code clarity.
changelog: [internal] internal
Reviewed By: alanleedev, NickGerleman
Differential Revision: D92024128
fbshipit-source-id: 8627edf02806d8767b72ed9adcbb15a5e2fca9271 parent 47684ca commit fc9940d
File tree
1 file changed
+6
-6
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
| |||
28 | 22 | | |
29 | 23 | | |
30 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments