-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[J2KT] Remove
JavaCollection/JavaList/JavaSet
bridge types
On JVM/J2CL, these are now replaced with typealiases of the plain Kotlin `MutableCollection/MutableList/MutableSet` interfaces. On Kotlin Native, they are replaced with the emulated `java.util.Collection/List/Set` interfaces which are sub-interfaces of the Kotlin interfaces. The `toArray` methods are not visible on the interfaces in JVM/J2CL so we need to suppress warnings regarding the `override` modifier (but only for direct implementations of the interface methods. The much more common case of overriding AbstractCollection#toArray does not have this requirement). As a result, binaries (.class/.js/.klib) will all use java.util.Collection (etc.) as the implemented/extended interface. PiperOrigin-RevId: 712572687
- Loading branch information
1 parent
2e593ec
commit b7195d4
Showing
6 changed files
with
69 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters