From 62146c1651620445e96303e5522eddc2105f2379 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sun, 12 Feb 2012 23:33:01 -0600 Subject: [PATCH] Remove redundant null check --- .../resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg index 769d0f876..86630bd10 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg @@ -538,7 +538,7 @@ public static class Context extends Context { VisitorDispatchMethod(method) ::= << @Override public void enterexitRule(ParseTreeListener\<\> listener) { - if ( listener!=null && listener instanceof Listener ) ((Listener)listener).enterexitRule(this); + if ( listener instanceof Listener ) ((Listener)listener).enterexitRule(this); } >>