summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-02-05 06:56:47 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-02-05 13:17:00 +0100
commitf705e9abdba1851f3a3f46fc310c3174348ff0ac (patch)
tree32a045d1ab3e59751420ac9a0e14368ff6ae9b6b /examples
parentd6f576102ef0accce5b79efa2ce714fe82c470ad (diff)
downloadbison-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 'examples')
-rw-r--r--examples/java/calc/Calc.y2
-rw-r--r--examples/java/simple/Calc.y2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/java/calc/Calc.y b/examples/java/calc/Calc.y
index a8d09244..9e8270c9 100644
--- a/examples/java/calc/Calc.y
+++ b/examples/java/calc/Calc.y
@@ -19,7 +19,7 @@
}
%code {
- public static void main (String args[]) throws IOException
+ public static void main (String[] args) throws IOException
{
CalcLexer l = new CalcLexer (System.in);
Calc p = new Calc (l);
diff --git a/examples/java/simple/Calc.y b/examples/java/simple/Calc.y
index e6c39df9..7ed7024c 100644
--- a/examples/java/simple/Calc.y
+++ b/examples/java/simple/Calc.y
@@ -14,7 +14,7 @@
}
%code {
- public static void main (String args[]) throws IOException
+ public static void main (String[] args) throws IOException
{
CalcLexer l = new CalcLexer (System.in);
Calc p = new Calc (l);