From cac933462838c3e28c8f23f8ed59a497469dd6af Mon Sep 17 00:00:00 2001 From: tkellner Date: Tue, 11 Mar 2014 23:31:11 +0000 Subject: Whitespace changes git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1306 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../java/at/gv/egiz/smcc/ExclSignatureCardProxy.java | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'smcc/src/main/java/at/gv') diff --git a/smcc/src/main/java/at/gv/egiz/smcc/ExclSignatureCardProxy.java b/smcc/src/main/java/at/gv/egiz/smcc/ExclSignatureCardProxy.java index fc156376..d114487b 100644 --- a/smcc/src/main/java/at/gv/egiz/smcc/ExclSignatureCardProxy.java +++ b/smcc/src/main/java/at/gv/egiz/smcc/ExclSignatureCardProxy.java @@ -38,11 +38,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class ExclSignatureCardProxy implements InvocationHandler { - + private final Logger log = LoggerFactory.getLogger(ExclSignatureCardProxy.class); private static final Method init; - + static { try { init = SignatureCard.class.getMethod("init", new Class[] { Card.class, @@ -53,9 +53,9 @@ public class ExclSignatureCardProxy implements InvocationHandler { throw new RuntimeException(e); } } - + private SignatureCard signatureCard; - + public ExclSignatureCardProxy(SignatureCard signatureCard) { this.signatureCard = signatureCard; } @@ -71,22 +71,22 @@ public class ExclSignatureCardProxy implements InvocationHandler { .toArray(new Class[proxyInterfaces.size()]), new ExclSignatureCardProxy(signatureCard)); } - + @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Card card = null; - + Method target = signatureCard.getClass().getMethod(method.getName(), method.getParameterTypes()); - + if (target.isAnnotationPresent(Exclusive.class)) { card = (Card) ((method.equals(init)) ? args[0] : signatureCard.getCard()); } - + if (card != null) { try { log.trace("Invoking method {}() with exclusive access.", method.getName()); @@ -96,7 +96,7 @@ public class ExclSignatureCardProxy implements InvocationHandler { throw new SignatureCardException(e); } } - + try { return method.invoke(signatureCard, args); } catch (InvocationTargetException e) { @@ -106,8 +106,6 @@ public class ExclSignatureCardProxy implements InvocationHandler { card.endExclusive(); } } - - } } -- cgit v1.2.3