diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-02-05 06:56:47 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-02-05 13:17:00 +0100 |
commit | f705e9abdba1851f3a3f46fc310c3174348ff0ac (patch) | |
tree | 32a045d1ab3e59751420ac9a0e14368ff6ae9b6b /tests | |
parent | d6f576102ef0accce5b79efa2ce714fe82c470ad (diff) | |
download | bison-f705e9abdba1851f3a3f46fc310c3174348ff0ac.tar.gz |
java: style: prefer putting the square brackets on the type
* examples/java/calc/Calc.y, examples/java/simple/Calc.y,
* tests/calc.at, tests/local.at: here.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/calc.at | 2 | ||||
-rw-r--r-- | tests/local.at | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/calc.at b/tests/calc.at index 78a701e2..3f800430 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -113,7 +113,7 @@ m4_define([AT_CALC_MAIN(d)], m4_define([AT_CALC_MAIN(java)], -[[public static void main (String args[]) throws IOException +[[public static void main (String[] args) throws IOException {]AT_LEXPARAM_IF([[ Calc p = new Calc (System.in);]], [[ CalcLexer l = new CalcLexer (System.in); diff --git a/tests/local.at b/tests/local.at index 307e341f..ee499a08 100644 --- a/tests/local.at +++ b/tests/local.at @@ -913,7 +913,7 @@ m4_define([AT_YYLEX_DEFINE(java)], m4_define([AT_MAIN_DEFINE(java)], [[class input { - public static void main (String args[]) throws IOException + public static void main (String[] args) throws IOException { ]AT_API_prefix[Parser p = new ]AT_API_prefix[Parser (); System.exit (p.parse () ? 0 : 1); |