[ 
https://issues.apache.org/jira/browse/ARTEMIS-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17828493#comment-17828493
 ] 

ASF subversion and git services commented on ARTEMIS-4695:
----------------------------------------------------------

Commit bc86a0a481879542525cb18243d23f51e3ae833d in activemq-artemis's branch 
refs/heads/main from aslepykh
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=bc86a0a481 ]

ARTEMIS-4695 BAD_COPY_PASTE in ActiveMQScheduledLeaseLock.java

In the detectAndReportRenewSlowness() method, the logger.error() and
logger.warn() methods are called 3 times.

In two of the three calls, the method arguments correspond to parameters
that are tested in the if() conditional construct.

Also, the arguments of the logger.error() and logger.warn() methods are
identical in lines 139 and 141, respectively, which may indicate that
they were copied incorrectly.


> Fix a few bugs found via static analysis
> ----------------------------------------
>
>                 Key: ARTEMIS-4695
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4695
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Priority: Major
>
> These issues were found using https://www.ispras.ru/en/technologies/svace/.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to