Skip to content

Conversation

@arturobernalg
Copy link
Member

  • Remove redundant initializer
  • Use Empty array

* Remove redundant initializer
*  Use Empty array
/** Whether to ignore empty tokens. */
private boolean ignoreEmptyTokens = true;

private static final String[] EMPTY_STRING_ARRAY = new String[0];
Copy link
Member

Choose a reason for hiding this comment

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

-1, reuse ArrayUtils.

Copy link
Member Author

@arturobernalg arturobernalg Jan 17, 2021

Choose a reason for hiding this comment

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

True. Changed for ArrayUtils.EMPTY_STRING_ARRAY

/** Whether to ignore empty tokens. */
private boolean ignoreEmptyTokens = true;

private static final String[] EMPTY_STRING_ARRAY = new String[0];
Copy link
Member

Choose a reason for hiding this comment

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

-1, reuse ArrayUtils.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed for ArrayUtils.EMPTY_STRING_ARRAY

@garydgregory garydgregory changed the title Minor Improvement: Minor Improvements Jan 17, 2021
@garydgregory garydgregory merged commit 29b60f5 into apache:master Jan 17, 2021
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0007%) to 98.687% when pulling 1cab6c0 on arturobernalg:feature/minor_improvements into f0f6347 on apache:master.

asfgit pushed a commit that referenced this pull request Jan 17, 2021
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