[ 
https://issues.apache.org/jira/browse/DIRAPI-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Lécharny resolved DIRAPI-408.
--------------------------------------
    Resolution: Won't Fix

This is not a bug. The simple fact that the default value is the same as code 
35 is irrelevant.

We use the explicit value for clarity, and also because it may change later.

> SIMILAR_BRANCHES in ResultCodeEnum.java
> ---------------------------------------
>
>                 Key: DIRAPI-408
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-408
>             Project: Directory Client API
>          Issue Type: Bug
>            Reporter: Alex
>            Priority: Minor
>
> Processing the value of ''value == 35'' is really unnecessary, if it is not 
> present, default will be triggered, which will return the same value. In 
> fact, this is useless code.
> https://github.com/apache/directory-ldap-api/blob/ff9b56ecb984bdbed0f4df25da1485e8a4b4a870/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/ResultCodeEnum.java#L1529C11-L1530



--
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