Andrey Slepykh created ARTEMIS-4775:
---------------------------------------
Summary: SIMILAR_BRANCHES.SWITCH Identical branches in switch node
Key: ARTEMIS-4775
URL: https://issues.apache.org/jira/browse/ARTEMIS-4775
Project: ActiveMQ Artemis
Issue Type: Bug
Components: JMS
Affects Versions: 2.25.0
Reporter: Andrey Slepykh
Attachments: image-2024-05-19-17-18-16-355.png
in
[class](https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/JMSFactoryType.java#L220)
the switch/case method contains extra code that could have been shortened
!image-2024-05-19-17-18-16-355.png!
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author: Firsov Vladimir, BMSTU ([email protected])
--
This message was sent by Atlassian Jira
(v8.20.10#820010)