code: @SuppressWarnings("unchecked") // the cache always returns the type matching enumType
      public static <T extends Enum<T>> T[] getSharedConstants(Class<T> enumType) {
          return (T[]) sharedConstantsCache.get(enumType);
      }
docs: Returns a shared, mutable array containing the constants of this enum. It
  is an error to modify the returned array.
  
  @hide