AMQ-5560: fixes typo in exception and drop extra cast

https://issues.apache.org/jira/browse/AMQ-5560
This commit is contained in:
Robert Gemmell 2015-03-06 10:21:20 +00:00
parent 8e551b4c3b
commit 84c7c3cdf8
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {