Using APIs that rely on the default Charset under the hood is dangerous. The default charset can vary from machine to machine or JVM to JVM. This can lead to unstable character encoding/decoding between runs of your program!
If you need stable encoding/decoding, you must specify an explicit charset. The
StandardCharsets class provides these constants for you.
When in doubt, use UTF-8.
Suppress false positives by adding the suppression annotation
@SuppressWarnings("DefaultCharset") to the enclosing element.