Commit 4d1ab09e10103a1ad080016902f051bab8a183fe
1 parent
86fe2d78
Exists in
master
Remoção de código desnecessário
Showing
1 changed file
with
1 additions
and
11 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/implementation/ConfigurationPrimitiveOrWrapperValueExtractor.java
| ... | ... | @@ -43,7 +43,6 @@ import java.util.HashSet; |
| 43 | 43 | import java.util.Set; |
| 44 | 44 | |
| 45 | 45 | import org.apache.commons.configuration.Configuration; |
| 46 | -import org.apache.commons.configuration.ConversionException; | |
| 47 | 46 | import org.apache.commons.configuration.DataConfiguration; |
| 48 | 47 | import org.apache.commons.lang.ClassUtils; |
| 49 | 48 | |
| ... | ... | @@ -70,16 +69,7 @@ public class ConfigurationPrimitiveOrWrapperValueExtractor implements Configurat |
| 70 | 69 | @Override |
| 71 | 70 | @SuppressWarnings("unchecked") |
| 72 | 71 | public Object getValue(String prefix, String key, Field field, Configuration configuration) { |
| 73 | - Object value; | |
| 74 | - | |
| 75 | - try { | |
| 76 | - value = new DataConfiguration(configuration).get(ClassUtils.primitiveToWrapper(field.getType()), prefix + key); | |
| 77 | - | |
| 78 | - } catch (ConversionException cause) { | |
| 79 | - value = null; | |
| 80 | - } | |
| 81 | - | |
| 82 | - return value; | |
| 72 | + return new DataConfiguration(configuration).get(ClassUtils.primitiveToWrapper(field.getType()), prefix + key); | |
| 83 | 73 | } |
| 84 | 74 | |
| 85 | 75 | @Override | ... | ... |