mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove deprecated String constants for Charsets
Use Kotlin Charsets from the `kotlin.text` package, the `java.nio.charset.StandardCharsets` or the `com.google.common.base.Charsets` instead. #minor-release PiperOrigin-RevId: 532469103 (cherry picked from commit 1061135cfd68dec4d2e073c1ca9e08d57b5c6875)
This commit is contained in:
parent
7fdae1ad0d
commit
fa152ddc80
@ -32,6 +32,11 @@
|
||||
* Remove deprecated `DownloadService` constructor, use a non deprecated
|
||||
constructor that includes the option to provide a
|
||||
`channelDescriptionResourceId` parameter.
|
||||
* Remove deprecated String constants for Charsets (`ASCII_NAME`,
|
||||
`UTF8_NAME`, `ISO88591_NAME`, `UTF16_NAME` and `UTF16LE_NAME`), use
|
||||
Kotlin Charsets from the `kotlin.text` package, the
|
||||
`java.nio.charset.StandardCharsets` or the
|
||||
`com.google.common.base.Charsets` instead.
|
||||
|
||||
### 1.0.2 (2023-05-18)
|
||||
|
||||
|
@ -95,36 +95,6 @@ public final class C {
|
||||
/** The number of bytes per float. */
|
||||
@UnstableApi public static final int BYTES_PER_FLOAT = 4;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link java.nio.charset.StandardCharsets} or {@link
|
||||
* com.google.common.base.Charsets} instead.
|
||||
*/
|
||||
@UnstableApi @Deprecated public static final String ASCII_NAME = "US-ASCII";
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link java.nio.charset.StandardCharsets} or {@link
|
||||
* com.google.common.base.Charsets} instead.
|
||||
*/
|
||||
@UnstableApi @Deprecated public static final String UTF8_NAME = "UTF-8";
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link java.nio.charset.StandardCharsets} or {@link
|
||||
* com.google.common.base.Charsets} instead.
|
||||
*/
|
||||
@UnstableApi @Deprecated public static final String ISO88591_NAME = "ISO-8859-1";
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link java.nio.charset.StandardCharsets} or {@link
|
||||
* com.google.common.base.Charsets} instead.
|
||||
*/
|
||||
@UnstableApi @Deprecated public static final String UTF16_NAME = "UTF-16";
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link java.nio.charset.StandardCharsets} or {@link
|
||||
* com.google.common.base.Charsets} instead.
|
||||
*/
|
||||
@UnstableApi @Deprecated public static final String UTF16LE_NAME = "UTF-16LE";
|
||||
|
||||
/** The name of the serif font family. */
|
||||
@UnstableApi public static final String SERIF_NAME = "serif";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user