Github user franz1981 commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/2488#discussion_r244987340 --- Diff: artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPSessionCallback.java --- @@ -233,6 +239,11 @@ public Object createSender(ProtonServerSenderContext protonSender, return consumer; } + private int getPriority(Map<Symbol, Object> properties) { + Integer value = properties == null ? null : (Integer) properties.get(PRIORITY); --- End diff -- I would use a cast to `Number` and call `Number::byteValue`
---