garyrussell/spring-integration — comment on commit 7951dee015a2ad5ab1ffe63f08e5318f0fd51ee7
File: spring-integration-amqp/src/main/java/org/springframework/integration/amqp/channel/AbstractSubscribableAmqpChannel.java line 73
By garyrussell:

Good point - I was originally going to check the type but felt queasy about a superclass testing if it's an instance of a subclass.

A constructor would be better; I will make it so.