You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Andrey Slepykh (Jira)" <ji...@apache.org> on 2024/11/11 00:28:00 UTC
[jira] [Created] (DIRAPI-413) FB.SA_FIELD_SELF_COMPARISON in generated code
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: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org