mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 00:59:44 +03:00
[FIX] Работа конфигов на русифицированных ОС (#394)
This commit is contained in:
parent
dba9d70b37
commit
2043d301a1
1 changed files with 2 additions and 5 deletions
|
@ -19,10 +19,7 @@
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.SimpleFileVisitor;
|
import java.nio.file.SimpleFileVisitor;
|
||||||
import java.nio.file.attribute.BasicFileAttributes;
|
import java.nio.file.attribute.BasicFileAttributes;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.jar.Attributes;
|
import java.util.jar.Attributes;
|
||||||
import java.util.jar.JarFile;
|
import java.util.jar.JarFile;
|
||||||
|
|
||||||
|
@ -148,7 +145,7 @@ public void addClassFieldsToProperties(Map<String, Object> propertyMap, String p
|
||||||
for (Field field : fields) {
|
for (Field field : fields) {
|
||||||
if ((field.getModifiers() & Modifier.STATIC) != 0) continue;
|
if ((field.getModifiers() & Modifier.STATIC) != 0) continue;
|
||||||
Object obj = field.get(object);
|
Object obj = field.get(object);
|
||||||
String propertyName = prefix.concat(".").concat(field.getName().toLowerCase());
|
String propertyName = prefix.concat(".").concat(field.getName().toLowerCase(Locale.US));
|
||||||
if(InjectClassAcceptor.isSerializableValue(obj))
|
if(InjectClassAcceptor.isSerializableValue(obj))
|
||||||
{
|
{
|
||||||
LogHelper.dev("Property name %s", propertyName);
|
LogHelper.dev("Property name %s", propertyName);
|
||||||
|
|
Loading…
Reference in a new issue