summaryrefslogtreecommitdiff
path: root/smcc/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2014-03-11 23:31:11 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2014-03-11 23:31:11 +0000
commitcac933462838c3e28c8f23f8ed59a497469dd6af (patch)
tree3a10f356eaeb07164196500e06ec177e4e6b5282 /smcc/src/main
parentac1671d00a6c318b31fd9137828814f844da9172 (diff)
downloadmocca-cac933462838c3e28c8f23f8ed59a497469dd6af.tar.gz
mocca-cac933462838c3e28c8f23f8ed59a497469dd6af.tar.bz2
mocca-cac933462838c3e28c8f23f8ed59a497469dd6af.zip
Whitespace changes
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1306 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smcc/src/main')
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/ExclSignatureCardProxy.java20
1 files changed, 9 insertions, 11 deletions
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();
}
}
-
-
}
}