27 |
|
|
28 |
String value = getValue( propertyName ); |
String value = getValue( propertyName ); |
29 |
if (value == null) { |
if (value == null) { |
30 |
//TODO: find another exception to throw here |
if (anno.mandatory()) { |
31 |
throw new RuntimeException("Could not find a value to this field: " + field.getName() ); |
//TODO: find another exception to throw here |
32 |
|
throw new RuntimeException("Could not find a value to this field: " + field.getName() ); |
33 |
|
} else { |
34 |
|
System.out.println("Could not find a value to this field: " + field.getName() ); |
35 |
|
continue; |
36 |
|
} |
37 |
} |
} |
38 |
|
|
39 |
setFieldValue(field,configObject,value); |
setFieldValue(field,configObject,value); |