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

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

                Author: ASF GitHub Bot
            Created on: 26/Feb/19 01:13
            Start Date: 26/Feb/19 01:13
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on issue #2566: ARTEMIS-2183 
Useless statement in public synchronized List
URL: https://github.com/apache/activemq-artemis/pull/2566#issuecomment-467251396
 
 
   can you close this? I sent a statement to close it but for some reason it 
did not work.
   
   
   already merged with another PR.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 204006)
    Time Spent: 5h 10m  (was: 5h)

> RefsOperation::getDeliveringMessages is broken
> ----------------------------------------------
>
>                 Key: ARTEMIS-2183
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2183
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>            Reporter: Jiri Daněk
>            Priority: Trivial
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>
> {code}
>    @Override
>    public synchronized List<MessageReference> getRelatedMessageReferences() {
>       List<MessageReference> listRet = new LinkedList<>();
>       listRet.addAll(listRet);  // 🐟
>       return listRet;
>    }
> {code}
> https://github.com/apache/activemq-artemis/blob/master/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RefsOperation.java#L184
> The method returns empty list, which may be wrong (looking at the method 
> name). There is absolutely nothing gained by adding content of empty inst 
> into itself, as in {{listRet.addAll(listRet)}}.
> Doing the addAll thing can be an error under ErrorProne compiler.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to