Skip to content
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

Polishing #478

Closed
wants to merge 1 commit into from
Closed

Polishing #478

wants to merge 1 commit into from

Conversation

kevin70
Copy link

@kevin70 kevin70 commented Jan 8, 2022

Make sure that:

  • You have read the contribution guidelines.
  • You have created a feature request first to discuss your contribution intent. Please reference the feature request ticket number in the pull request.
  • You use the code formatters provided here and have them applied to your changes. Don't submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.

Issue description

New Public APIs

Additional context

if (biGraph.equals("/*")) {
char c1 = sql.charAt(i);
char c2 = sql.charAt(i + 1);
if (c1 == '/' && c2 == '*') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Apologies but to me current version seems more readable biGraph.equals("/*") i.e. start of the comment block.

Or am I missing something here?

Copy link
Author

Choose a reason for hiding this comment

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

sql.substring(i, i + 2).
Using char instead can avoid generating redundant string objects.

@mp911de mp911de self-assigned this Jan 10, 2022
@mp911de mp911de closed this in bb05e95 Jan 11, 2022
@mp911de mp911de added this to the 0.9.0.RELEASE milestone Jan 11, 2022
@mp911de mp911de added the type: task A general task label Jan 11, 2022
@mp911de
Copy link
Collaborator

mp911de commented Jan 11, 2022

Thank you for your contribution. That's merged now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants