Skip to content

Commit c06440f

Browse files
cpovirkGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedMar 20, 2025
Re-add image/avif in MediaType.
(And this time, include a `@since` tag :)) We'd originally added this in cl/723988216 but then withdrew it in cl/728267849 so that we could release a [module-system-friendly](#2970) version of Guava as a _patch_ release, rather than as a _minor_ release. RELNOTES=`net`: Added `image/avif` to `MediaType`. PiperOrigin-RevId: 728268046
1 parent 7a71ea0 commit c06440f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
 

‎android/guava/src/com/google/common/net/MediaType.java

+7
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ private static MediaType addKnownType(MediaType mediaType) {
252252
public static final MediaType SVG_UTF_8 = createConstantUtf8(IMAGE_TYPE, "svg+xml");
253253
public static final MediaType TIFF = createConstant(IMAGE_TYPE, "tiff");
254254

255+
/**
256+
* <a href="https://en.wikipedia.org/wiki/AVIF">AVIF image format</a>.
257+
*
258+
* @since NEXT
259+
*/
260+
public static final MediaType AVIF = createConstant(IMAGE_TYPE, "avif");
261+
255262
/**
256263
* <a href="https://en.wikipedia.org/wiki/WebP">WebP image format</a>.
257264
*

‎guava/src/com/google/common/net/MediaType.java

+7
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ private static MediaType addKnownType(MediaType mediaType) {
252252
public static final MediaType SVG_UTF_8 = createConstantUtf8(IMAGE_TYPE, "svg+xml");
253253
public static final MediaType TIFF = createConstant(IMAGE_TYPE, "tiff");
254254

255+
/**
256+
* <a href="https://en.wikipedia.org/wiki/AVIF">AVIF image format</a>.
257+
*
258+
* @since NEXT
259+
*/
260+
public static final MediaType AVIF = createConstant(IMAGE_TYPE, "avif");
261+
255262
/**
256263
* <a href="https://en.wikipedia.org/wiki/WebP">WebP image format</a>.
257264
*

0 commit comments

Comments
 (0)