throw exception not null
This commit is contained in:
parent
33d11709df
commit
599896cf1b
|
@ -64,10 +64,12 @@ public abstract class Recognizer<Symbol, ATNInterpreter extends ATNSimulator> {
|
||||||
*
|
*
|
||||||
* Provide a dummy return value here to support backward compatibility.
|
* Provide a dummy return value here to support backward compatibility.
|
||||||
*
|
*
|
||||||
* For interpreters, we don't know their serialized ATN despite having
|
* For interpreters, we don't know their serialized ATN despite having
|
||||||
* created the interpreter from it.
|
* 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.
|
/** For debugging and other purposes, might want the grammar name.
|
||||||
* Have ANTLR generate an implementation for this method.
|
* Have ANTLR generate an implementation for this method.
|
||||||
|
|
Loading…
Reference in New Issue