Commit 01a1cb2a20d0c282e70d14d1969883bd8e7e79c9
1 parent
8e8fc827
Exists in
master
Deletado try-catch desnecessário
Showing
1 changed file
with
1 additions
and
8 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/producer/ResourceBundleProducer.java
... | ... | @@ -76,14 +76,7 @@ public class ResourceBundleProducer implements Serializable { |
76 | 76 | */ |
77 | 77 | public static ResourceBundle create(String baseName, Locale locale) { |
78 | 78 | ResourceBundle bundle = null; |
79 | - | |
80 | - try { | |
81 | - bundle = new ResourceBundle(baseName, locale); | |
82 | - | |
83 | - } catch (MissingResourceException e) { | |
84 | - throw new DemoiselleException("File " + baseName + " not found!"); | |
85 | - } | |
86 | - | |
79 | + bundle = new ResourceBundle(baseName, locale); | |
87 | 80 | return bundle; |
88 | 81 | } |
89 | 82 | ... | ... |