mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Issue #108 : avoid accessing system property directly to avoid a potential security exception
This commit is contained in:
parent
b09290c7dc
commit
a4af21a0fe
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package com.google.zxing.common;
|
package com.google.zxing.common;
|
||||||
|
|
||||||
|
import java.nio.charset.Charset;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.google.zxing.DecodeHintType;
|
import com.google.zxing.DecodeHintType;
|
||||||
|
@ -28,8 +29,7 @@ import com.google.zxing.DecodeHintType;
|
||||||
*/
|
*/
|
||||||
public final class StringUtils {
|
public final class StringUtils {
|
||||||
|
|
||||||
private static final String PLATFORM_DEFAULT_ENCODING =
|
private static final String PLATFORM_DEFAULT_ENCODING = Charset.defaultCharset().name();
|
||||||
System.getProperty("file.encoding");
|
|
||||||
public static final String SHIFT_JIS = "SJIS";
|
public static final String SHIFT_JIS = "SJIS";
|
||||||
public static final String GB2312 = "GB2312";
|
public static final String GB2312 = "GB2312";
|
||||||
private static final String EUC_JP = "EUC_JP";
|
private static final String EUC_JP = "EUC_JP";
|
||||||
|
|
Loading…
Reference in a new issue