Skip to content

Commit 4bec1cb

Browse files
author
Robert Lazarski
committed
AXIS2-6062 minor code cleanup
1 parent 3b2aeee commit 4bec1cb

File tree

1 file changed

+1
-1
lines changed
  • modules/transport/jms/src/main/java/org/apache/axis2/transport/jms

1 file changed

+1
-1
lines changed

modules/transport/jms/src/main/java/org/apache/axis2/transport/jms/JMSSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void sendMessage(MessageContext msgCtx, String targetAddress,
120120
JMSOutTransportInfo jmsOut = null;
121121
JMSMessageSender messageSender = null;
122122

123-
if (targetAddress != null&& (targetAddress.toUpperCase().indexOf("LDAP")!=-1 || targetAddress.toUpperCase().indexOf("RMI")!=-1 || targetAddress.toUpperCase().indexOf("JMX")!=-1 || targetAddress.toUpperCase().indexOf("JRMP")!=-1 || targetAddress.toUpperCase().indexOf("DNS")!=-1 || targetAddress.toUpperCase().indexOf("IIOP")!=-1 || targetAddress.toUpperCase().indexOf("CORBANAME")!=-1)) {
123+
if (targetAddress != null && (targetAddress.toUpperCase().indexOf("LDAP")!=-1 || targetAddress.toUpperCase().indexOf("RMI")!=-1 || targetAddress.toUpperCase().indexOf("JMX")!=-1 || targetAddress.toUpperCase().indexOf("JRMP")!=-1 || targetAddress.toUpperCase().indexOf("DNS")!=-1 || targetAddress.toUpperCase().indexOf("IIOP")!=-1 || targetAddress.toUpperCase().indexOf("CORBANAME")!=-1)) {
124124
throw new AxisFault("targetAddress received by JMSSender is not supported by this method: " + targetAddress);
125125
}
126126

0 commit comments

Comments
 (0)