Merge pull request #8 from sharwell/62146c1651620445e96303e5522eddc2105f2379

Removed redundant check for null
This commit is contained in:
Terence Parr 2012-02-13 10:19:30 -08:00
commit d06b83fd22
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ public static class <s.label>Context extends <currentRule.name>Context {
VisitorDispatchMethod(method) ::= << VisitorDispatchMethod(method) ::= <<
@Override @Override
public void <if(method.isEnter)>enter<else>exit<endif>Rule(ParseTreeListener\<<InputSymbolType()>\> listener) { public void <if(method.isEnter)>enter<else>exit<endif>Rule(ParseTreeListener\<<InputSymbolType()>\> listener) {
if ( listener!=null && listener instanceof <parser.grammarName>Listener ) ((<parser.grammarName>Listener)listener).<if(method.isEnter)>enter<else>exit<endif>Rule(this); if ( listener instanceof <parser.grammarName>Listener ) ((<parser.grammarName>Listener)listener).<if(method.isEnter)>enter<else>exit<endif>Rule(this);
} }
>> >>