[
https://issues.apache.org/jira/browse/ARTEMIS-5534?focusedWorklogId=972643&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-972643
]
ASF GitHub Bot logged work on ARTEMIS-5534:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 11/Jun/25 19:00
Start Date: 11/Jun/25 19:00
Worklog Time Spent: 10m
Work Description: jbertram opened a new pull request, #5771:
URL: https://github.com/apache/activemq-artemis/pull/5771
(no comment)
Issue Time Tracking
-------------------
Worklog Id: (was: 972643)
Remaining Estimate: 0h
Time Spent: 10m
> Use Objects.requireNonNullElse() where sensible
> -----------------------------------------------
>
> Key: ARTEMIS-5534
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5534
> Project: ActiveMQ Artemis
> Issue Type: Task
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> There are lots of places across the code-base which do a check like this:
> {code:java}
> foo != null ? foo : bar{code}
> or
> {code:java}
> foo == null ? bar : foo{code}
> These can be replaced, e.g.:
> {code:java}
> Objects.requireNonNullElse(foo, bar){code}
> This code is more clear and will make the code-base more consistent overall.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact