Commit 080467cc authored by David Feliot's avatar David Feliot
Browse files

JORAM-180: avoid calling 'Class.forName'.

parent 9306f957
......@@ -186,6 +186,15 @@ public abstract class AbstractJmsMessage implements Externalizable, Streamable,
case CONSUMER_ACK_REQUEST:
msg = new ConsumerAckRequest();
break;
case CONSUMER_RECEIVE_REQUEST:
msg = new ConsumerReceiveRequest();
break;
case SERVER_REPLY:
msg = new ServerReply();
break;
case CONSUMER_SET_LIST_REQUEST:
msg = new ConsumerSetListRequest();
break;
default:
msg = (AbstractJmsMessage) Class.forName(classnames[classid]).newInstance();
}
......
Supports Markdown
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