818283848586878889
*/ public List<String> parse(String content) throws SyntaxException { try { _sieveFactory.parse(new ByteArrayInputStream(content.getBytes())); } catch (ParseException ex) { throw new SyntaxException(ex); } return EMPTY_WARNINGS; }
454647484950515253
} public List<String> parse(String content) throws SyntaxException { if (content.equals("SyntaxException")) { throw new SyntaxException("Ouch!"); } return Arrays.asList(new String[]{"warning1", "warning2"}); }