mirror of https://github.com/apache/activemq.git
AMQ-5560: fixes typo in exception and drop extra cast
https://issues.apache.org/jira/browse/AMQ-5560
This commit is contained in:
parent
8e551b4c3b
commit
84c7c3cdf8
|
@ -1636,7 +1636,7 @@ class AmqpProtocolConverter implements IAmqpProtocolConverter {
|
|||
private DescribedType findFilter(Map<Symbol, Object> filters, Object[] filterIds) {
|
||||
|
||||
if (filterIds == null || filterIds.length == 0) {
|
||||
throw new IllegalArgumentException("Invliad Filter Ids array passed: " + filterIds);
|
||||
throw new IllegalArgumentException("Invalid Filter Ids array passed: " + filterIds);
|
||||
}
|
||||
|
||||
if (filters == null || filters.isEmpty()) {
|
||||
|
@ -1646,7 +1646,7 @@ class AmqpProtocolConverter implements IAmqpProtocolConverter {
|
|||
for (Object value : filters.values()) {
|
||||
if (value instanceof DescribedType) {
|
||||
DescribedType describedType = ((DescribedType) value);
|
||||
Object descriptor = ((DescribedType) value).getDescriptor();
|
||||
Object descriptor = describedType.getDescriptor();
|
||||
|
||||
for (Object filterId : filterIds) {
|
||||
if (descriptor.equals(filterId)) {
|
||||
|
|
Loading…
Reference in New Issue