-
Notifications
You must be signed in to change notification settings - Fork 645
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
Add test for #1197 #1269
Add test for #1197 #1269
Conversation
* Avoid multiple calls to toLowerCase * Make local variables finals
@@ -129,15 +129,16 @@ public String[] getColumnNames( | |||
* @param headerNames The header names to be potentially adjusted. | |||
*/ | |||
private void renameDuplicateColumnHeaders(String[] headerNames) { | |||
Map<String, Integer> nameCounter = new HashMap<>(); | |||
final Map<String, Integer> nameCounter = new HashMap<>(); |
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.
Let's remove final
everywhere. It doesn't match the style of the codebase
Maybe we can consider whether to migrate to var
after a release has been out for awhile if folks don't complain about us dropping Java 8. Perhaps final var
would look less noisy than final
looks with types. The other option might be lombok's val
, but not sure if I'd want to introduce something that non-standard
void allowDuplicateColumnNamesInsensitive() throws IOException { | ||
final Reader reader2 = | ||
new StringReader( | ||
"Col1" + COMMA + "col1" + LINE_END + "\"first\"" + COMMA + "second" + LINE_END); |
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.
We could probably make this a tad simpler
"Col1" + COMMA + "col1" + LINE_END + "\"first\"" + COMMA + "second" + LINE_END); | |
"Col1" + COMMA + "col1" + LINE_END + "first" + COMMA + "second" + LINE_END); |
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.
Sure, I took that from the test above. Done
Co-authored-by: Ben McCann <[email protected]>
Thanks for contributing.
Description
Testing
Yes