Andrey Slepykh created DIRAPI-413:
-------------------------------------

             Summary: FB.SA_FIELD_SELF_COMPARISON in generated code
                 Key: DIRAPI-413
                 URL: https://issues.apache.org/jira/browse/DIRAPI-413
             Project: Directory Client API
          Issue Type: Bug
            Reporter: Andrey Slepykh


There's self comparison in several places in generated code:

1) Self comparison of antlr.Token.SKIP with itself in 
org.apache.directory.api.ldap.trigger.AntlrTriggerSpecificationLexer.mCOMMENT(boolean).
        {{_ttype = Token.SKIP;  // assigned}}
{{        if ( _createToken && _token==null && _ttype!=Token.SKIP ) {    // 
self-comparison here}}
{{            _token = makeToken(_ttype);}}
{{            _token.setText(new String(text.getBuffer(), _begin, 
text.length()-_begin));}}
{{        }}}
 
{{2) }}Self comparison of antlr.Token.SKIP with itself in 
org.apache.directory.api.ldap.schema.converter.antlrSchemaConverterLexer.mWS(boolean)
 
{{        _ttype = Token.SKIP; // assigned}}
{{        if ( _createToken && _token==null && _ttype!=Token.SKIP ) { // 
self-comparison here}}
{{            _token = makeToken(_ttype);}}
{{            _token.setText(new String(text.getBuffer(), _begin, 
text.length()-_begin));}}
{{        }}}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to