Skip to content

Choice fix#5

Open
uaArsen wants to merge 6 commits into
masterfrom
choice-fix
Open

Choice fix#5
uaArsen wants to merge 6 commits into
masterfrom
choice-fix

Conversation

@uaArsen
Copy link
Copy Markdown
Contributor

@uaArsen uaArsen commented Nov 29, 2019

@uaArsen uaArsen self-assigned this Nov 29, 2019
*/
@Override
public List<PropertyName> findPropertyAliases(Annotated a) {
if (a.hasAnnotation(XmlElements.class) || a.hasAnnotation(XmlElementRefs.class)) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible to wrap this two condition blocks into one if (a.hasAnnotation(XmlElement.class)) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

readResourceFileAsJsonArray("choicesElements.json").stream().map(JsonValue::asJsonObject).forEach(o -> {
System.out.println(o);
Object result = this.wrapAndTest(handler, o, weatherDescription, clazz);
Assertions.assertNotNull(result);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assert not null for so complicated task?

readResourceFileAsJsonArray("choicesRefs.json").stream().map(JsonValue::asJsonObject).forEach(o -> {
System.out.println(o);
Object result = this.wrapAndTest(handler, o, weatherDescription, clazz);
Assertions.assertNotNull(result);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assert not null for so complicated task?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants