}
@Override
- public List<Comment> getComments(Story story) throws IOException {
+ public void fetch(Story story) throws IOException {
List<Comment> comments = new ArrayList<Comment>();
URL url = new URL(story.getUrlInternal());
comments.addAll(getComments(listing));
}
- return comments;
+ story.setComments(comments);
}
private List<Comment> getComments(Element listing) {