From 94d3c71b023956b47c901ffbd889ab0f87689a15 Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Mon, 9 Sep 2013 14:47:02 -0700 Subject: [PATCH] rm unneeded IF check --- .../Java/src/org/antlr/v4/runtime/atn/PredictionContext.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/PredictionContext.java b/runtime/Java/src/org/antlr/v4/runtime/atn/PredictionContext.java index 0ef654409..0e58cf4a0 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/atn/PredictionContext.java +++ b/runtime/Java/src/org/antlr/v4/runtime/atn/PredictionContext.java @@ -106,9 +106,7 @@ public abstract class PredictionContext { // If we have a parent, convert it to a PredictionContext graph PredictionContext parent = EMPTY; - if ( outerContext.parent != null ) { - parent = PredictionContext.fromRuleContext(atn, outerContext.parent); - } + parent = PredictionContext.fromRuleContext(atn, outerContext.parent); ATNState state = atn.states.get(outerContext.invokingState); RuleTransition transition = (RuleTransition)state.transition(0);