Skip to content

Java: Fix harmless search-replace mistake#8529

Merged
smowton merged 1 commit intomainfrom
smowton/admin/commons-lang3-test-typo
Mar 25, 2022
Merged

Java: Fix harmless search-replace mistake#8529
smowton merged 1 commit intomainfrom
smowton/admin/commons-lang3-test-typo

Conversation

@smowton
Copy link
Contributor

@smowton smowton commented Mar 22, 2022

No description provided.

@smowton smowton requested a review from a team as a code owner March 22, 2022 14:42
@github-actions github-actions bot added the Java label Mar 22, 2022
Comment on lines +195 to +196
sink(StringUtils.split(taint(), " ,;")); // $hasTaintFlow
sink(StringUtils.split(taint(), " ,;", 0)); // $hasTaintFlow
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't really matter much, but I'd say that was intended to be just a space:

Suggested change
sink(StringUtils.split(taint(), " ,;")); // $hasTaintFlow
sink(StringUtils.split(taint(), " ,;", 0)); // $hasTaintFlow
sink(StringUtils.split(taint(), " ")); // $hasTaintFlow
sink(StringUtils.split(taint(), " ", 0)); // $hasTaintFlow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It isn't actually; these functions take a string which is a list of separator chars, so this is a realistic (albeit irrelevant) input

Copy link
Contributor

@atorralba atorralba left a comment

Choose a reason for hiding this comment

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

Having said that, LGTM

@smowton smowton merged commit f0168d0 into main Mar 25, 2022
@smowton smowton deleted the smowton/admin/commons-lang3-test-typo branch March 25, 2022 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants