Skip to content

Commit e51666b

Browse files
authored
Use Charset object instead of just its name (#11273)
1 parent be48bdd commit e51666b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.io.Reader;
2929
import java.io.Writer;
3030
import java.net.URL;
31+
import java.nio.charset.Charset;
3132
import java.nio.charset.StandardCharsets;
3233
import java.nio.file.Files;
3334
import java.nio.file.Path;
@@ -64,7 +65,7 @@ public class MavenProperties extends AbstractMap<String, String> {
6465
/**
6566
* Unless standard java props, use UTF-8
6667
*/
67-
static final String DEFAULT_ENCODING = StandardCharsets.UTF_8.name();
68+
static final Charset DEFAULT_ENCODING = StandardCharsets.UTF_8;
6869

6970
/** Constant for the platform specific line separator.*/
7071
private static final String LINE_SEPARATOR = System.lineSeparator();

0 commit comments

Comments
 (0)