Skip to content
Browse files

Merge pull request #680 from andytaylor/master

fixed yet another logic error
  • Loading branch information...
2 parents 0508de5 + 258b098 commit 972eb375247cc3b9d48d2b6291565fec3b8ec99b @FranciscoBorges FranciscoBorges committed Nov 16, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 hornetq-ra/src/main/java/org/hornetq/ra/inflow/HornetQActivation.java
View
12 hornetq-ra/src/main/java/org/hornetq/ra/inflow/HornetQActivation.java
@@ -556,11 +556,11 @@ public String toString()
*/
public void handleFailure(Throwable failure)
{
- if(failure instanceof HornetQException && !(((HornetQException)failure).getType() == HornetQExceptionType.QUEUE_DOES_NOT_EXIST))
+ if(failure instanceof HornetQException && ((HornetQException)failure).getType() == HornetQExceptionType.QUEUE_DOES_NOT_EXIST)
{
HornetQRALogger.LOGGER.awaitingTopicQueueCreation(getActivationSpec().getDestination());
}
- else if(failure instanceof HornetQException && !(((HornetQException)failure).getType() == HornetQExceptionType.NOT_CONNECTED))
+ else if(failure instanceof HornetQException && ((HornetQException)failure).getType() == HornetQExceptionType.NOT_CONNECTED)
{
HornetQRALogger.LOGGER.awaitingJMSServerCreation();
}
@@ -604,17 +604,17 @@ else if(failure instanceof HornetQException && !(((HornetQException)failure).get
}
catch (Throwable t)
{
- if(failure instanceof HornetQException && !(((HornetQException)failure).getType() == HornetQExceptionType.QUEUE_DOES_NOT_EXIST))
+ if(failure instanceof HornetQException && ((HornetQException)failure).getType() == HornetQExceptionType.QUEUE_DOES_NOT_EXIST)
{
- if (lastException == null || !(lastException instanceof HornetQNonExistentQueueException))
+ if (lastException == null || !(t instanceof HornetQNonExistentQueueException))
{
lastException = t;
HornetQRALogger.LOGGER.awaitingTopicQueueCreation(getActivationSpec().getDestination());
}
}
- else if(failure instanceof HornetQException && !(((HornetQException)failure).getType() == HornetQExceptionType.NOT_CONNECTED))
+ else if(failure instanceof HornetQException && ((HornetQException)failure).getType() == HornetQExceptionType.NOT_CONNECTED)
{
- if (lastException == null || !(lastException instanceof HornetQNotConnectedException))
+ if (lastException == null || !(t instanceof HornetQNotConnectedException))
{
lastException = t;
HornetQRALogger.LOGGER.awaitingJMSServerCreation();

0 comments on commit 972eb37

Please sign in to comment.
Something went wrong with that request. Please try again.