1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-25 02:18:50 +00:00

fix: 当值为null时放弃后续解析

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-06 10:52:42 +08:00
parent 20f306288f
commit b39e091cfc

View File

@ -60,8 +60,10 @@ public abstract class AbstractInjectConfig {
if (value == null) {
if (def != null) {
value = def.value();
} else if (field.getAnnotation(Nullable.class) == null) {
Log.warning(String.format(PATH_NOT_FOUND, path));
} else {
if (field.getAnnotation(Nullable.class) == null) {
Log.warning(String.format(PATH_NOT_FOUND, path));
}
return;
}
}