From abbd143791463907fb76bb773536c932dc86813f Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 18 Feb 2025 08:52:45 -0800 Subject: [PATCH] Temporarily withdraw `image/avif` from `MediaType`. There is nothing wrong with it, and we will add it in version 33.5.0. I'm removing it merely so that we can release a [module-system-friendly](https://github.com/google/guava/issues/2970) version of Guava as a _patch_ release, rather than as a _minor_ release. (The `MediaType` change is the only addition we've made since 33.4.0.) By doing so, we reduce the pressure on users to upgrade immediately, since dependencies can't come to depend on any new APIs. That gives users a little more time to sort out any issues that might arise from our new `module-info`. RELNOTES=n/a PiperOrigin-RevId: 728228675 --- android/guava/src/com/google/common/net/MediaType.java | 3 --- guava/src/com/google/common/net/MediaType.java | 3 --- 2 files changed, 6 deletions(-) diff --git a/android/guava/src/com/google/common/net/MediaType.java b/android/guava/src/com/google/common/net/MediaType.java index c6f0801e163d..fc0e9392365e 100644 --- a/android/guava/src/com/google/common/net/MediaType.java +++ b/android/guava/src/com/google/common/net/MediaType.java @@ -252,9 +252,6 @@ private static MediaType addKnownType(MediaType mediaType) { public static final MediaType SVG_UTF_8 = createConstantUtf8(IMAGE_TYPE, "svg+xml"); public static final MediaType TIFF = createConstant(IMAGE_TYPE, "tiff"); - /** AVIF image format. */ - public static final MediaType AVIF = createConstant(IMAGE_TYPE, "avif"); - /** * WebP image format. * diff --git a/guava/src/com/google/common/net/MediaType.java b/guava/src/com/google/common/net/MediaType.java index c6f0801e163d..fc0e9392365e 100644 --- a/guava/src/com/google/common/net/MediaType.java +++ b/guava/src/com/google/common/net/MediaType.java @@ -252,9 +252,6 @@ private static MediaType addKnownType(MediaType mediaType) { public static final MediaType SVG_UTF_8 = createConstantUtf8(IMAGE_TYPE, "svg+xml"); public static final MediaType TIFF = createConstant(IMAGE_TYPE, "tiff"); - /** AVIF image format. */ - public static final MediaType AVIF = createConstant(IMAGE_TYPE, "avif"); - /** * WebP image format. *