File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public JSONArray(JSONTokener x) throws JSONException {
111111 char nextChar = x .nextClean ();
112112 if (nextChar == 0 ) {
113113 // array is unclosed. No ']' found, instead EOF
114- throw new JSONException ( x .syntaxError ("Expected a ',' or ']'" ) );
114+ throw x .syntaxError ("Expected a ',' or ']'" );
115115 }
116116 if (nextChar != ']' ) {
117117 x .back ();
@@ -126,12 +126,12 @@ public JSONArray(JSONTokener x) throws JSONException {
126126 switch (x .nextClean ()) {
127127 case 0 :
128128 // array is unclosed. No ']' found, instead EOF
129- throw new JSONException ( x .syntaxError ("Expected a ',' or ']'" ) );
129+ throw x .syntaxError ("Expected a ',' or ']'" );
130130 case ',' :
131131 nextChar = x .nextClean ();
132132 if (nextChar == 0 ) {
133133 // array is unclosed. No ']' found, instead EOF
134- throw new JSONException ( x .syntaxError ("Expected a ',' or ']'" ) );
134+ throw x .syntaxError ("Expected a ',' or ']'" );
135135 }
136136 if (nextChar == ']' ) {
137137 return ;
You can’t perform that action at this time.
0 commit comments