From 36a9af8b2991a8f7704365ff61e97b97d9541587 Mon Sep 17 00:00:00 2001 From: sharwell Date: Thu, 17 Nov 2011 16:59:19 -0800 Subject: [PATCH] v4: Specify @Nullable [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9342] --- .../Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java | 3 ++- runtime/Java/src/org/antlr/v4/runtime/dfa/DFA.java | 3 ++- runtime/Java/src/org/antlr/v4/runtime/dfa/DFASerializer.java | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java b/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java index 5fbf03ddb..de05d68a1 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java +++ b/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java @@ -29,6 +29,7 @@ package org.antlr.v4.runtime.atn; +import com.sun.istack.internal.Nullable; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.dfa.DFA; import org.antlr.v4.runtime.dfa.DFAState; @@ -104,7 +105,7 @@ public class LexerATNSimulator extends ATNSimulator { this(null, atn); } - public LexerATNSimulator(Lexer recog, ATN atn) { + public LexerATNSimulator(@Nullable Lexer recog, ATN atn) { super(atn); dfa = new DFA[atn.modeToStartState.size()]; for (int i=0; i