Skip to content

Commit c66795c

Browse files
kingsleyadiofacebook-github-bot
authored andcommitted
Convert WidgetAttributes to Kotlin
Summary: $title Reviewed By: zielinskimz Differential Revision: D73032176 fbshipit-source-id: 13a85bcfcf4339b92a497f4a15999962149fd6c0
1 parent a08cd26 commit c66795c

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

litho-widget/src/main/java/com/facebook/litho/widget/WidgetAttributes.java renamed to litho-widget/src/main/java/com/facebook/litho/widget/WidgetAttributes.kt

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.facebook.litho.widget;
17+
package com.facebook.litho.widget
1818

19-
import com.facebook.litho.AttributeKey;
20-
import java.util.List;
19+
import com.facebook.litho.AttributeKey
2120

22-
/** Collection of the {@link AttributeKey} that are used across Litho's widgets. */
23-
public class WidgetAttributes {
24-
25-
private WidgetAttributes() {
26-
// do nothing
27-
}
28-
29-
/** Key used to identify real text set by the developer in the {@link TextSpec}. */
30-
public static final AttributeKey<List<CharSequence>> Text = new AttributeKey<>("text");
21+
/** Collection of the [AttributeKey] that are used across Litho's widgets. */
22+
object WidgetAttributes {
23+
/** Key used to identify real text set by the developer in the [TextSpec]. */
24+
@JvmField val Text: AttributeKey<List<CharSequence>> = AttributeKey("text")
3125
}

0 commit comments

Comments
 (0)