Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.25.0
-
None
-
None
Description
The static analyzer has detected SIMILAR_BRANCHES.SWITCH: we have identical branches in switch node in [private static String threadInfoToString] https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/ThreadDumpUtil.java#L106-L113
It seems better to change code this way:
case WAITING:
case TIMED_WAITING:
sb.append("\t- waiting on " + threadInfo.getLockInfo());
sb.append('\n');
break;
default:
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author E. Bykhanova (e.bykhanova@fobos-nt.ru).
Attachments
Attachments
Issue Links
- links to