throw exception not null
This commit is contained in:
parent
33d11709df
commit
599896cf1b
|
@ -67,7 +67,9 @@ public abstract class Recognizer<Symbol, ATNInterpreter extends ATNSimulator> {
|
|||
* For interpreters, we don't know their serialized ATN despite having
|
||||
* created the interpreter from it.
|
||||
*/
|
||||
public String getSerializedATN() { return null; }
|
||||
public String getSerializedATN() {
|
||||
throw new UnsupportedOperationException("there is no serialized ATN");
|
||||
}
|
||||
|
||||
/** For debugging and other purposes, might want the grammar name.
|
||||
* Have ANTLR generate an implementation for this method.
|
||||
|
|
Loading…
Reference in New Issue