Skip to content

Commit 54e1c75

Browse files
martinkretzschmarGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
Remove @J2ktIncompatible from Maps#immutableEnumMap
There are many enum collection APIs that don’t work on J2KT. But this here does work fine. RELNOTES=n/a PiperOrigin-RevId: 608331195
1 parent f50be65 commit 54e1c75

File tree

2 files changed

+0
-2
lines changed
  • android/guava/src/com/google/common/collect
  • guava/src/com/google/common/collect

2 files changed

+0
-2
lines changed

android/guava/src/com/google/common/collect/Maps.java

-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ V transform(Entry<K, V> entry) {
151151
* @since 14.0
152152
*/
153153
@GwtCompatible(serializable = true)
154-
@J2ktIncompatible
155154
public static <K extends Enum<K>, V> ImmutableMap<K, V> immutableEnumMap(
156155
Map<K, ? extends V> map) {
157156
if (map instanceof ImmutableEnumMap) {

guava/src/com/google/common/collect/Maps.java

-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ V transform(Entry<K, V> entry) {
156156
* @since 14.0
157157
*/
158158
@GwtCompatible(serializable = true)
159-
@J2ktIncompatible
160159
public static <K extends Enum<K>, V> ImmutableMap<K, V> immutableEnumMap(
161160
Map<K, ? extends V> map) {
162161
if (map instanceof ImmutableEnumMap) {

0 commit comments

Comments
 (0)