diff options
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/syntax/SkylarkList.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/SkylarkList.java b/src/main/java/com/google/devtools/build/lib/syntax/SkylarkList.java index abb5031599..8e99331660 100644 --- a/src/main/java/com/google/devtools/build/lib/syntax/SkylarkList.java +++ b/src/main/java/com/google/devtools/build/lib/syntax/SkylarkList.java @@ -343,12 +343,8 @@ public abstract class SkylarkList<E> extends MutableCollection<E> * <p>Other immutable empty list objects can exist, e.g. lists that were once mutable but whose * environments were then frozen. This instance is for empty lists that were always frozen from * the beginning. - * - * @deprecated Prefer {@link #empty()} instead, since that includes a cast for the element type. - * This field will be made private in the near future. */ - @Deprecated - public static final MutableList<?> EMPTY = + private static final MutableList<?> EMPTY = new MutableList<>(ImmutableList.of(), Mutability.IMMUTABLE); /** Returns an empty frozen list, cast to have an arbitrary content type. */ |