Skip to content

Commit

Permalink
Revert "Issue #106 - corrected notification rate handling"
Browse files Browse the repository at this point in the history
This reverts commit 4367875.
  • Loading branch information
Matthew Harrah authored and Matthew Harrah committed Jul 7, 2016
1 parent 4367875 commit 868b7f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/gedcom4j/parser/GedcomParser.java
Expand Up @@ -2016,7 +2016,6 @@ private void loadRootItems(StringTree st) throws GedcomParserException {
if (cancelled) {
throw new ParserCancelledException("File load/parse cancelled");
}
i++;
}
notifyParseObservers(new ParseProgressEvent(this, gedcom, true));
}
Expand Down
Expand Up @@ -72,7 +72,6 @@ public void testCancellation() throws IOException, GedcomParserException {
gp = new GedcomParser();
cancelAfter = 100;
gp.registerParseObserver(this);
gp.setParseNotificationRate(1);
gp.load("sample/willis-ascii.ged");
}

Expand All @@ -87,9 +86,8 @@ public void testNoCancellation() throws IOException, GedcomParserException {
gp = new GedcomParser();
cancelAfter = Integer.MAX_VALUE;
gp.registerParseObserver(this);
gp.setParseNotificationRate(10);
gp.load("sample/willis-ascii.ged");
assertEquals(128, notificationCount);
assertEquals(1269, notificationCount);
}

}

0 comments on commit 868b7f0

Please sign in to comment.