e.bykhanova created DIRSERVER-2396:
--------------------------------------

             Summary: SIMILAR_BRANCHES in ../codec/types/PaDataType.java
                 Key: DIRSERVER-2396
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2396
             Project: Directory ApacheDS
          Issue Type: Bug
    Affects Versions: 2.0.0.AM26
            Reporter: e.bykhanova
         Attachments: image-2024-03-06-10-53-02-886.png, 
image-2024-03-06-10-53-41-922.png

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{_}.

 

!image-2024-03-06-10-53-02-886.png!

 

!image-2024-03-06-10-53-41-922.png!

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

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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org

Reply via email to