-
-
Notifications
You must be signed in to change notification settings - Fork 881
Allow TokenFilter to preserve empty #716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -451,11 +451,15 @@ protected String readAndWrite(JsonFactory f, JsonParser p) throws IOException | |
| g.disable(JsonGenerator.Feature.AUTO_CLOSE_JSON_CONTENT); | ||
| try { | ||
| while (p.nextToken() != null) { | ||
| System.err.println(p.currentToken() + " " + p.currentName() + " " + p.currentValue()); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I left this in to remind myself to ask about
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just make sure this gets removed before merging -- no System.err or System.out output from Jackson code ever unless absolutely required. |
||
| g.copyCurrentEvent(p); | ||
| } | ||
| } catch (IOException e) { | ||
| g.flush(); | ||
| fail("Unexpected problem during `readAndWrite`. Output so far: '"+sw+"'; problem: "+e); | ||
| throw new AssertionError( | ||
| "Unexpected problem during `readAndWrite`. Output so far: '" + | ||
| sw + "'; problem: " + e.getMessage(), | ||
| e); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't required at all but it sure made all the failures easier to see. I had a lot of failures.....
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But isn't there already |
||
| } | ||
| p.close(); | ||
| g.close(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in the old code this was calling the wrong callback here.