From 7cc9107053bb3c7f657941d7d0d276688505e082 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 10 Nov 2020 07:24:22 +0100 Subject: [PATCH] style: enforce java coding style * tests/scanner.at: here. --- tests/scanner.at | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tests/scanner.at b/tests/scanner.at index 1d1041b5..1eb898bd 100644 --- a/tests/scanner.at +++ b/tests/scanner.at @@ -178,24 +178,22 @@ m4_define([AT_RAW_YYLEX(java)], StreamTokenizer st; - public CalcLexer (InputStream is) - { - st = new StreamTokenizer (new StringReader ("0-(1+2)*3/9")); - st.resetSyntax (); - st.eolIsSignificant (true); - st.whitespaceChars ('\t', '\t'); - st.whitespaceChars (' ', ' '); - st.wordChars ('0', '9'); + public CalcLexer(InputStream is) { + st = new StreamTokenizer(new StringReader("0-(1+2)*3/9")); + st.resetSyntax(); + st.eolIsSignificant(true); + st.whitespaceChars('\t', '\t'); + st.whitespaceChars(' ', ' '); + st.wordChars('0', '9'); } - public void yyerror (String s) - { - System.err.println (s); + public void yyerror(String s) { + System.err.println(s); } Integer yylval; - public Object getLVal () { + public Object getLVal() { return yylval; }