Commit 6281084
Fix HasBetterKotlinAlternativeMethod: Use Kotlin joinToString in TextAttributeProps (facebook#55505)
Summary:
Replace `TextUtils.join(", ", features)` with Kotlin's idiomatic `features.joinToString(", ")` to fix the HasBetterKotlinAlternativeMethod lint warning. Also removed the now-unused `TextUtils` import while keeping the `TextUtils.TruncateAt` import that is still in use.
changelog: [internal] internal
Reviewed By: alanleedev
Differential Revision: D920214651 parent 2875784 commit 6281084
File tree
1 file changed
+1
-2
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
241 | | - | |
| 240 | + | |
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
| |||
0 commit comments