The Definitive ANTLR 4 Reference: Program deprecation warning

page 37

ANTLRInputStream input = new ANTLRInputStream(is);

as of ANTLR 4 .8 should be:

CharStream stream = CharStreams.fromStream(is);

as it is now the code shows deprecation warning.

Great book overall.

3 Likes