Skip to content

Commit 2f7e6c5

Browse files
klueverGoogle Java Core Libraries
authored andcommitted
Add a note about HexFormat to the documentation of BaseEncoding.base16().
RELNOTES=n/a PiperOrigin-RevId: 815722750
1 parent 4dada61 commit 2f7e6c5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

android/guava/src/com/google/common/io/BaseEncoding.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ public static BaseEncoding base32Hex() {
425425
* <p>No line feeds are added by default, as per <a
426426
* href="http://tools.ietf.org/html/rfc4648#section-3.1">RFC 4648 section 3.1</a>, Line Feeds in
427427
* Encoded Data. Line feeds may be added using {@link #withSeparator(String, int)}.
428+
*
429+
* <p><b>Java 17+ users:</b> Consider using the {@link java.util.HexFormat} API instead.
428430
*/
429431
public static BaseEncoding base16() {
430432
return BASE16;

guava/src/com/google/common/io/BaseEncoding.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ public static BaseEncoding base32Hex() {
425425
* <p>No line feeds are added by default, as per <a
426426
* href="http://tools.ietf.org/html/rfc4648#section-3.1">RFC 4648 section 3.1</a>, Line Feeds in
427427
* Encoded Data. Line feeds may be added using {@link #withSeparator(String, int)}.
428+
*
429+
* <p><b>Java 17+ users:</b> Consider using the {@link java.util.HexFormat} API instead.
428430
*/
429431
public static BaseEncoding base16() {
430432
return BASE16;

0 commit comments

Comments
 (0)