Skip to content

Java: Add models for Commons ToStringBuilder #5181

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

Merged

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Feb 16, 2021

These don't include support for reflectionToString yet, which is coming up in a subsequent PR.

@smowton smowton requested a review from a team as a code owner February 16, 2021 12:23
@smowton smowton force-pushed the smowton/feature/commons-tostringbuilder branch from 8baae0f to 82dad2d Compare March 18, 2021 09:02
@smowton
Copy link
Contributor Author

smowton commented Mar 18, 2021

@aschackmull this has been rewritten using the new fluent-method support and CSV specifications.

row =
[
"org.apache.commons.lang3.builder;ToStringBuilder;false;toString;;;Argument[-1];ReturnValue;taint",
"org.apache.commons.lang3.builder;ToStringBuilder;false;append;(java.lang.Object);;Argument;ReturnValue;taint",
Copy link
Contributor

Choose a reason for hiding this comment

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

Argument without indices are no longer supported for flow-through.

"org.apache.commons.lang3.builder;ToStringBuilder;false;toString;;;Argument[-1];ReturnValue;taint",
"org.apache.commons.lang3.builder;ToStringBuilder;false;append;(java.lang.Object);;Argument;ReturnValue;taint",
"org.apache.commons.lang3.builder;ToStringBuilder;false;append;(java.lang.Object);;Argument;Argument[-1];taint",
"org.apache.commons.lang3.builder;ToStringBuilder;false;append;(java.lang.Object[]);;Argument;ReturnValue;taint",
Copy link
Contributor

Choose a reason for hiding this comment

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

Input should likely be ArrayElement of Argument[0] for the various array inputs.

"org.apache.commons.lang3.builder;ToStringBuilder;false;append;(java.lang.Object);;Argument;Argument[-1];taint",
"org.apache.commons.lang3.builder;ToStringBuilder;false;append;(java.lang.Object[]);;Argument;ReturnValue;taint",
"org.apache.commons.lang3.builder;ToStringBuilder;false;append;(java.lang.Object[]);;Argument;Argument[-1];taint",
"org.apache.commons.lang3.builder;ToStringBuilder;false;append;(java.lang.String,java.lang.Object[]);;Argument;ReturnValue;taint",
Copy link
Contributor

Choose a reason for hiding this comment

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

Lines like this should be superfluous now, right? With a fluent spec we just need to taint Argument[-1].

@smowton
Copy link
Contributor Author

smowton commented Apr 21, 2021

@aschackmull changes applied; tests expected to fail for the time being.

@aschackmull
Copy link
Contributor

changes applied

It doesn't look like you pushed any changes.

@smowton smowton force-pushed the smowton/feature/commons-tostringbuilder branch from f01c027 to 76091f0 Compare April 22, 2021 08:21
@smowton
Copy link
Contributor Author

smowton commented Apr 22, 2021

Doh, force-pushed (rebase)

@smowton
Copy link
Contributor Author

smowton commented Apr 22, 2021

Test failures expected for now (pending array Content implementation)

@aschackmull aschackmull merged commit 30cb80b into github:main Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants