[
https://issues.apache.org/jira/browse/DIRAPI-413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lécharny resolved DIRAPI-413.
--------------------------------------
Resolution: Won't Fix
This is generated code, we can't do anything about it.
OTOH, the JIT compiler is very likely to get rid of this part on code at
runtime.
> 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
> Priority: Minor
>
> 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]