|
13 | 13 | * |
14 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
15 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
16 | | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
17 | 17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
18 | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
19 | 19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
52 | 52 | import com.sdicons.json.model.JSONString; |
53 | 53 | import com.sdicons.json.model.JSONValue; |
54 | 54 | import com.sdicons.json.parser.JSONParser; |
55 | | -import com.sdicons.json.parser.ParserException; |
56 | 55 |
|
57 | 56 | public class TokenizerTester { |
58 | 57 |
|
@@ -103,7 +102,7 @@ private static boolean jsonDeepEquals(JSONValue one, JSONValue other) { |
103 | 102 | private final Writer writer; |
104 | 103 |
|
105 | 104 | public TokenizerTester(InputStream stream) throws TokenStreamException, |
106 | | - RecognitionException, UnsupportedEncodingException, ParserException { |
| 105 | + RecognitionException, UnsupportedEncodingException { |
107 | 106 | tokenHandler = new JSONArrayTokenHandler(); |
108 | 107 | driver = new Driver(new ErrorReportingTokenizer(tokenHandler)); |
109 | 108 | driver.setCommentPolicy(XmlViolationPolicy.ALLOW); |
@@ -222,10 +221,9 @@ private void runTestInner(String inputString, JSONArray expectedTokens, |
222 | 221 | * @throws TokenStreamException |
223 | 222 | * @throws IOException |
224 | 223 | * @throws SAXException |
225 | | - * @throws ParserException |
226 | 224 | */ |
227 | 225 | public static void main(String[] args) throws TokenStreamException, |
228 | | - RecognitionException, SAXException, IOException, ParserException { |
| 226 | + RecognitionException, SAXException, IOException { |
229 | 227 | for (int i = 0; i < args.length; i++) { |
230 | 228 | byte[] fileBytes = Files.readAllBytes(Paths.get(args[i])); |
231 | 229 | String fileContent = new String(fileBytes, StandardCharsets.UTF_8); |
|
0 commit comments