We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a860c5 commit 2c24be2Copy full SHA for 2c24be2
log4j-api/src/main/java/org/apache/logging/log4j/util/Base64Util.java
@@ -27,7 +27,7 @@
27
*/
28
public final class Base64Util {
29
30
- private static final Base64.Encoder encoder = Base64.getEncoder();
+ private static final Base64.Encoder ENCODER = Base64.getEncoder();
31
32
private Base64Util() {}
33
@@ -37,6 +37,6 @@ private Base64Util() {}
37
38
@Deprecated
39
public static String encode(final String str) {
40
- return str != null ? encoder.encodeToString(str.getBytes(Charset.defaultCharset())) : null;
+ return str != null ? ENCODER.encodeToString(str.getBytes(Charset.defaultCharset())) : null;
41
}
42
0 commit comments