Commit 6910386d authored by Andre Freyssinet's avatar Andre Freyssinet
Browse files

minor changes.

parent 832699fa
......@@ -736,16 +736,17 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
DestinationDesc destDesc;
// Retrieving an existing destination:
if (destName != null && ! destName.equals("") && destinationsTable.containsKey(destName)) {
if (destName != null && !destName.equals("")
&& destinationsTable.containsKey(destName)) {
destDesc = (DestinationDesc) destinationsTable.get(destName);
if (! DestinationConstants.compatible(destDesc.getType(), type)) {
if (!DestinationConstants.compatible(destDesc.getType(), type)) {
throw new RequestException("Destination type not compliant");
}
// TODO (AF): May be we have to send a SetProperties to the destination (JORAM-267).
strbuf.append("Request [").append(requestClassName)
.append("], processed by AdminTopic on server [").append(serverId)
.append("], successful [true]: destination [")
.append(destName).append("] has been retrieved");
.append("], successful [true]: destination [").append(destName)
.append("] has been retrieved");
} else {
// Instantiating the destination class.
Destination dest = null;
......
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2016 - 2018 ScalAgent Distributed Technologies
* Copyright (C) 2016 - 2020 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment