v++
завершение обновления с настройками
This commit is contained in:
@@ -536,5 +536,15 @@ public class Utils_ {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
public static <T extends Properties> T ReadProperties(File propertiesFile, Class<T>properties_class){
|
||||
T res= null;
|
||||
try {
|
||||
res = (T) Utils_.jsonFromFile(propertiesFile, properties_class);
|
||||
res.setFile(propertiesFile);
|
||||
Utils_.jsonToFile(res, propertiesFile);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user