This commit is contained in:
AriaLyy
2017-11-14 22:11:14 +08:00
parent a310df2281
commit 887026bb04
5 changed files with 12 additions and 4 deletions

View File

@@ -152,7 +152,8 @@ class Configuration {
: UPLOAD_CONFIG_FILE));
if (file.exists()) {
Properties properties = CommonUtil.loadConfig(file);
List<Field> fields = CommonUtil.getAllFields(getClass());
List<Field> fields =
CommonUtil.getAllFields(isDownload ? DownloadConfig.class : UploadConfig.class);
try {
for (Field field : fields) {
int m = field.getModifiers();