Skip to content

Loading…

fixed yet another logic error #680

Merged
merged 1 commit into from

2 participants

@andytaylor
HornetQ member

No description provided.

@FranciscoBorges FranciscoBorges merged commit 972eb37 into hornetq:master

1 check was pending

default Merged build triggered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 16, 2012
  1. @andytaylor

    fixed another logic error

    andytaylor committed
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();
Something went wrong with that request. Please try again.