activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiri Danek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARTEMIS-1410) Coverity: Identical code for different branches
Date Mon, 11 Sep 2017 17:15:00 GMT
Jiri Danek created ARTEMIS-1410:
-----------------------------------

             Summary: Coverity: Identical code for different branches
                 Key: ARTEMIS-1410
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1410
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Broker, OpenWire
    Affects Versions: 2.4.0
            Reporter: Jiri Danek
            Priority: Trivial


{noformat}
CID 1410014 (#1 of 1): Identical code for different branches (IDENTICAL_BRANCHES)
identical_branches: The same code is executed regardless of whether openwireDestination.isTemporary()
is true, because the 'then' and 'else' branches are identical. Should one of the branches
be modified, or the entire 'if' statement replaced?
103         if (openwireDestination.isTemporary()) {
104            address = new SimpleString(physicalName);
105         } else {
106            address = new SimpleString(physicalName);
107         }
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message