[ 
https://issues.apache.org/jira/browse/ARTEMIS-5533?focusedWorklogId=972498&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-972498
 ]

ASF GitHub Bot logged work on ARTEMIS-5533:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Jun/25 21:35
            Start Date: 10/Jun/25 21:35
    Worklog Time Spent: 10m 
      Work Description: jbertram opened a new pull request, #5769:
URL: https://github.com/apache/activemq-artemis/pull/5769

   (no comment)




Issue Time Tracking
-------------------

            Worklog Id:     (was: 972498)
    Remaining Estimate: 0h
            Time Spent: 10m

> Use Objects.requireNonNull() where sensible
> -------------------------------------------
>
>                 Key: ARTEMIS-5533
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5533
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            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}
> if (foo == null) {
>    throw new NullPointerException("foo should not be null");
> }{code}
> These can be simplified, e.g.:
> {code:java}
> Objects.requireNonNull(foo, "foo should not be null"){code}
> Furthermore since {{requireNonNull}} returns the input some of these checks 
> can be inlined with assignments.



--
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


Reply via email to