Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4746

SIMILAR_BRANCHES.SWITCH Identical branches in switch node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.33.0
    • 2.34.0
    • Broker
    • None

    Description

      In class JMSExceptionHelper]

      In this stack of screenshots I show that there is unnecessary logic, by correcting which you can reduce the load on the computer and shorten the code

      Some cases can be classified into groups, such as:

      a) 

      1. case CONNECTION_TIMEDOUT:

              2. case INTERNAL_ERROR:

              3. case NOT_CONNECTED:

      b)

      1. case ILLEGAL_STATE:

              2. case OBJECT_CLOSED:

              3. case UNSUPPORTED_PACKET

      c)

             1. case QUEUE_DOES_NOT_EXIST:

             2. case QUEUE_EXISTS:

       

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              a.slepykh Andrey Slepykh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m