This is an automated email from the ASF dual-hosted git repository. aduprat pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 37b0b39571f9f50268bdfa88979ace839bd84369 Author: Matthieu Baechler <matth...@apache.org> AuthorDate: Fri Feb 15 09:47:20 2019 +0100 JAMES-2817 Avoid C-like cast syntax in GroupRegistration --- .../main/java/org/apache/james/mailbox/events/GroupRegistration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailbox/event/event-rabbitmq/src/main/java/org/apache/james/mailbox/events/GroupRegistration.java b/mailbox/event/event-rabbitmq/src/main/java/org/apache/james/mailbox/events/GroupRegistration.java index 7730efc..c704ad3 100644 --- a/mailbox/event/event-rabbitmq/src/main/java/org/apache/james/mailbox/events/GroupRegistration.java +++ b/mailbox/event/event-rabbitmq/src/main/java/org/apache/james/mailbox/events/GroupRegistration.java @@ -164,7 +164,7 @@ class GroupRegistration implements Registration { return Optional.ofNullable(acknowledgableDelivery.getProperties().getHeaders()) .flatMap(headers -> Optional.ofNullable(headers.get(RETRY_COUNT))) .filter(object -> object instanceof Integer) - .map(object -> (Integer) object) + .map(Integer.class::cast) .orElse(DEFAULT_RETRY_COUNT); } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org