Commit 7c0c79d63e9fcee558411febb8ee90687615f2bc

Authored by Cleverson Sacramento
1 parent 601e60d7
Exists in master

Mais formatação...

impl/core/src/main/java/br/gov/frameworkdemoiselle/util/Beans.java
@@ -103,6 +103,7 @@ public final class Beans { @@ -103,6 +103,7 @@ public final class Beans {
103 103
104 try { 104 try {
105 instance = (T) getReference(manager.getBeans(beanClass)); 105 instance = (T) getReference(manager.getBeans(beanClass));
  106 +
106 } catch (NoSuchElementException cause) { 107 } catch (NoSuchElementException cause) {
107 String message = getBundle().getString("bean-not-found", beanClass.getCanonicalName()); 108 String message = getBundle().getString("bean-not-found", beanClass.getCanonicalName());
108 throw new DemoiselleException(message, cause); 109 throw new DemoiselleException(message, cause);
@@ -117,6 +118,7 @@ public final class Beans { @@ -117,6 +118,7 @@ public final class Beans {
117 118
118 try { 119 try {
119 instance = (T) getReference(manager.getBeans(beanName)); 120 instance = (T) getReference(manager.getBeans(beanName));
  121 +
120 } catch (NoSuchElementException cause) { 122 } catch (NoSuchElementException cause) {
121 String message = getBundle().getString("bean-not-found", beanName); 123 String message = getBundle().getString("bean-not-found", beanName);
122 throw new DemoiselleException(message, cause); 124 throw new DemoiselleException(message, cause);