diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2012-12-10 19:52:14 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2012-12-10 19:52:14 +0000 |
| commit | 1c67a924c2c41a0ca4600303880a2c64a1d593e7 (patch) | |
| tree | 813723744fed04c8814bc879e5f1b93c3c574153 /java | |
| parent | e88abb970f5a647e99230a5f0b97cc15d5e9f036 (diff) | |
| download | qpid-python-1c67a924c2c41a0ca4600303880a2c64a1d593e7.tar.gz | |
QPID-4496 Fixed a typo in the error message and adjusted the if
condition to confirm to the Qpid coding style.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1419708 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
| -rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java index 76a18b70d9..9a7f5241a5 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java @@ -1121,7 +1121,10 @@ public class AMQSession_0_10 extends AMQSession<BasicMessageConsumer_0_10, Basic if (assertNode) { - if (!match) throw new AMQException("Aessert failed for address : " + dest +", Result was : " + result); + if (!match) + { + throw new AMQException("Assert failed for address : " + dest +", Result was : " + result); + } } return match; @@ -1146,7 +1149,10 @@ public class AMQSession_0_10 extends AMQSession<BasicMessageConsumer_0_10, Basic if (assertNode) { - if (!match) throw new AMQException("Aessert failed for address : " + dest +", Result was : " + result); + if (!match) + { + throw new AMQException("Assert failed for address : " + dest +", Result was : " + result); + } } } catch(SessionException e) |
