Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed another logic error

  • Loading branch information...
commit 258b098fe166fdfa7f0a5138387e7192d591891f 1 parent 3870eb7
@andytaylor andytaylor authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.