From 601e60d7a4e00b7a1e6a635421325ddd04b4c359 Mon Sep 17 00:00:00 2001 From: Cleverson Sacramento Date: Mon, 3 Sep 2012 16:40:56 -0300 Subject: [PATCH] Formatação do código com base no formatador padrão do projeto --- impl/core/src/main/java/br/gov/frameworkdemoiselle/util/Beans.java | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/impl/core/src/main/java/br/gov/frameworkdemoiselle/util/Beans.java b/impl/core/src/main/java/br/gov/frameworkdemoiselle/util/Beans.java index 2ac4063..584de58 100644 --- a/impl/core/src/main/java/br/gov/frameworkdemoiselle/util/Beans.java +++ b/impl/core/src/main/java/br/gov/frameworkdemoiselle/util/Beans.java @@ -90,8 +90,7 @@ public final class Beans { buffer.append(qualifier.getClass().getCanonicalName()); } - String message = getBundle() - .getString("bean-not-found", buffer.toString()); + String message = getBundle().getString("bean-not-found", buffer.toString()); throw new DemoiselleException(message, cause); } @@ -100,32 +99,29 @@ public final class Beans { @SuppressWarnings("unchecked") public static T getReference(final Class beanClass) { - T instance; - + try { instance = (T) getReference(manager.getBeans(beanClass)); - }catch (NoSuchElementException cause) { - String message = getBundle() - .getString("bean-not-found", beanClass.getCanonicalName()); + } catch (NoSuchElementException cause) { + String message = getBundle().getString("bean-not-found", beanClass.getCanonicalName()); throw new DemoiselleException(message, cause); } - + return instance; } @SuppressWarnings("unchecked") public static T getReference(String beanName) { T instance; - + try { instance = (T) getReference(manager.getBeans(beanName)); - }catch (NoSuchElementException cause) { - String message = getBundle() - .getString("bean-not-found", beanName); + } catch (NoSuchElementException cause) { + String message = getBundle().getString("bean-not-found", beanName); throw new DemoiselleException(message, cause); } - + return instance; } -- libgit2 0.21.2