element-hq / element-hq/element-android

Replace sealed classes by sealed interfaces

Open
#4,588 0 comments 0 reactions 0 assignees View on GitHub
A-Developer-Experience A-DevX T-Task
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

`sealed interface` has been introduced in Kotlin 1.5.

All `VectorViewModelAction` and `VectorViewEvents` could be sealed interface, but actually all sealed class without any member could be change to sealed interface.

It also has the advantage to declare the implementation in several files, but still in the same package.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.