diff --git a/src/main/java/us/monoid/json/JSONObject.java b/src/main/java/us/monoid/json/JSONObject.java index a8f00e9..4e21c18 100644 --- a/src/main/java/us/monoid/json/JSONObject.java +++ b/src/main/java/us/monoid/json/JSONObject.java @@ -293,7 +293,7 @@ public JSONObject(Object bean) { * An array of strings, the names of the fields to be obtained from * the object. */ - public JSONObject(Object object, String names[]) { + public JSONObject(Object object, String[] names) { this(); Class c = object.getClass(); for (int i = 0; i < names.length; i += 1) { diff --git a/src/main/java/us/monoid/json/JSONWriter.java b/src/main/java/us/monoid/json/JSONWriter.java index 02c2982..e31dab7 100644 --- a/src/main/java/us/monoid/json/JSONWriter.java +++ b/src/main/java/us/monoid/json/JSONWriter.java @@ -78,7 +78,7 @@ public class JSONWriter { /** * The object/array stack. */ - private JSONObject stack[]; + private JSONObject[] stack; /** * The stack top index. A value of 0 indicates that the stack is empty. diff --git a/src/main/java/us/monoid/web/jp/javacc/SimpleCharStream.java b/src/main/java/us/monoid/web/jp/javacc/SimpleCharStream.java index 782cbc9..4ef9a27 100644 --- a/src/main/java/us/monoid/web/jp/javacc/SimpleCharStream.java +++ b/src/main/java/us/monoid/web/jp/javacc/SimpleCharStream.java @@ -16,8 +16,8 @@ public class SimpleCharStream int tokenBegin; /** Position in buffer. */ public int bufpos = -1; - protected int bufline[]; - protected int bufcolumn[]; + protected int[] bufline; + protected int[] bufcolumn; protected int column = 0; protected int line = 1; @@ -39,8 +39,8 @@ public class SimpleCharStream protected void ExpandBuff(boolean wrapAround) { char[] newbuffer = new char[bufsize + 2048]; - int newbufline[] = new int[bufsize + 2048]; - int newbufcolumn[] = new int[bufsize + 2048]; + int[] newbufline = new int[bufsize + 2048]; + int[] newbufcolumn = new int[bufsize + 2048]; try { diff --git a/src/main/java/us/monoid/web/jp/javacc/SimpleNode.java b/src/main/java/us/monoid/web/jp/javacc/SimpleNode.java index 97f1654..e31a364 100644 --- a/src/main/java/us/monoid/web/jp/javacc/SimpleNode.java +++ b/src/main/java/us/monoid/web/jp/javacc/SimpleNode.java @@ -41,7 +41,7 @@ public void jjtAddChild(Node n, int i) { if (children == null) { children = new Node[i + 1]; } else if (i >= children.length) { - Node c[] = new Node[i + 1]; + Node[] c = new Node[i + 1]; System.arraycopy(children, 0, c, 0, children.length); children = c; }