Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-2396

SIMILAR_BRANCHES in ../codec/types/PaDataType.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.0.AM26
    • 2.0.0.AM28
    • None
    • None

    Description

      The static analyzer has detected SIMILAR_BRANCHES: here we have identical branches in switch node.

      The values for all cases are defined in 'public enum PaDataType' ** (PaDataType.java:28-121). There are comments from the developer: Constant for the "encryption info" for PA_ENCTYPE_INFO(11) and Constant for the "encryption info2" for PA_ENCTYPE_INFO2(19) - it seems that something like "Encryption info2." would be more logical to use in print-function at PaDataType.java:249.

       

       

       
      Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.

      Author E. Bykhanova (e.bykhanova@fobos-nt.ru).

      Attachments

        1. image-2024-03-06-10-53-41-922.png
          76 kB
          e.bykhanova
        2. image-2024-03-06-10-53-02-886.png
          77 kB
          e.bykhanova

        Activity

          People

            Unassigned Unassigned
            ellena13 e.bykhanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: