GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Allow nulls for write elements in MXSerializer by garydgregory · Pull Request #29 · codehaus-plexus/plexus-xml Conversation
|
|
@garydgregory thanks ... I afraid thet we will have a conflict with my PR #28 If you let me I first merge my PR and that you can rebase your |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
8a472f5 to
e03c11f
Compare
|
@slawekjaranowski |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@michael-o @elharo can you also look at it 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'd like to see this rebased first... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
After the rebase is done let's try MJAVADOC again with a snapshot of Plexus XML and see what happens. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e03c11f to
5a5581a
Compare
|
I rebased on master again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| new MXSerializer().writeElementContent(null, stringWriter); | ||
| new MXSerializer().writeAttributeValue(null, stringWriter); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
should support ?
new MXSerializer().writeElementContent("value", null); new MXSerializer().writeAttributeValue("value", null);
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Also add some of assertions for what content of stringWriter should be.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Please also change of PR / commit message to show what really is changed, what is root cause eg
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Test: output: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
What about the pretty printer? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
some suggestion. I don't see anything actually incorrect here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } else { | ||
| if (value != null) { | ||
| // .[apostrophe and <, & escaped], | ||
| final char quot = attributeUseApostrophe ? '\'' : '"'; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we even make a choice here. Would be simpler to pick one and stick with it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| out.write(quotEntity); | ||
| pos = i + 1; | ||
| } else if (ch < 32) { | ||
| // in XML 1.0 only legal character are #x9 | #xA | #xD |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
legal C0 characters
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // pass through | ||
|
|
||
| // } else if(ch == 13) { //escape | ||
| // and they must be escaped otherwise in attribute value they are normalized to spaces |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
escaped;
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| pos = i + 1; | ||
| } else { | ||
| throw new IllegalStateException( | ||
| "character " + Integer.toString(ch) + " is not allowed in output" + getLocation()); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
IllegalArgumentException
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } else { | ||
| throw new IllegalStateException( | ||
| "character " + Integer.toString(ch) + " is not allowed in output" + getLocation()); | ||
| // in XML 1.1 legal are [#x1-#xD7FF] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'd delete all this commented code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (ch == 9 || ch == 10 || ch == 13) { | ||
| // pass through | ||
|
|
||
| // } else if(ch == 13) { //escape |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
delete commented code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5a5581a to
b2263d5
Compare
|
@elharo Thank you for your comments. I'll let the Maven team address those since I feel they are out of scope for this PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * Tests MJAVADOC-793. | ||
| */ | ||
| @Test | ||
| public void testMJAVADOC793() throws IOException { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This should be renamed. This is not related to the Javadoc plugin. IT simply does not allow null values. testNullValues()?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done: testWriteNullValues().
Sorry, something went wrong.
There was an error while loading. Please reload this page.
you right if needed should be fixed in separate PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
looks OK please chenge test name and commit PR title
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b2263d5 to
5a58475
Compare
|
@michael-o I hope your doubts was resolved, so I will merge and process forward |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
|
|
||
| /** | ||
| * Tests MJAVADOC-793. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Well, that comment is wrong here as well.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, but my question about the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.