Skip to content

Commit 4c64d06

Browse files
committed
Revert ParserException import that should not have been added in the previous commit
1 parent 0d33011 commit 4c64d06

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

test-src/nu/validator/htmlparser/test/TokenizerTester.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
* 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
1717
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1818
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1919
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
@@ -52,7 +52,6 @@
5252
import com.sdicons.json.model.JSONString;
5353
import com.sdicons.json.model.JSONValue;
5454
import com.sdicons.json.parser.JSONParser;
55-
import com.sdicons.json.parser.ParserException;
5655

5756
public class TokenizerTester {
5857

@@ -103,7 +102,7 @@ private static boolean jsonDeepEquals(JSONValue one, JSONValue other) {
103102
private final Writer writer;
104103

105104
public TokenizerTester(InputStream stream) throws TokenStreamException,
106-
RecognitionException, UnsupportedEncodingException, ParserException {
105+
RecognitionException, UnsupportedEncodingException {
107106
tokenHandler = new JSONArrayTokenHandler();
108107
driver = new Driver(new ErrorReportingTokenizer(tokenHandler));
109108
driver.setCommentPolicy(XmlViolationPolicy.ALLOW);
@@ -222,10 +221,9 @@ private void runTestInner(String inputString, JSONArray expectedTokens,
222221
* @throws TokenStreamException
223222
* @throws IOException
224223
* @throws SAXException
225-
* @throws ParserException
226224
*/
227225
public static void main(String[] args) throws TokenStreamException,
228-
RecognitionException, SAXException, IOException, ParserException {
226+
RecognitionException, SAXException, IOException {
229227
for (int i = 0; i < args.length; i++) {
230228
byte[] fileBytes = Files.readAllBytes(Paths.get(args[i]));
231229
String fileContent = new String(fileBytes, StandardCharsets.UTF_8);

0 commit comments

Comments
 (0)