style: enforce java coding style

* tests/scanner.at: here.
This commit is contained in:
Akim Demaille
2020-11-10 07:24:22 +01:00
parent 25ded505a3
commit 7cc9107053

View File

@@ -178,8 +178,7 @@ m4_define([AT_RAW_YYLEX(java)],
StreamTokenizer st; StreamTokenizer st;
public CalcLexer (InputStream is) public CalcLexer(InputStream is) {
{
st = new StreamTokenizer(new StringReader("0-(1+2)*3/9")); st = new StreamTokenizer(new StringReader("0-(1+2)*3/9"));
st.resetSyntax(); st.resetSyntax();
st.eolIsSignificant(true); st.eolIsSignificant(true);
@@ -188,8 +187,7 @@ m4_define([AT_RAW_YYLEX(java)],
st.wordChars('0', '9'); st.wordChars('0', '9');
} }
public void yyerror (String s) public void yyerror(String s) {
{
System.err.println(s); System.err.println(s);
} }