Skip to content

Use StringBuilder instead of StringBuffer #1010

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

Closed
wants to merge 2 commits into from
Closed

Use StringBuilder instead of StringBuffer #1010

wants to merge 2 commits into from

Conversation

asashour
Copy link
Contributor

@asashour asashour commented Mar 3, 2020

As you know, StringBuilder is the new way, as I don't think the synchronization feature of StringBuffer is needed.

I declare that the contribution is in the public domain.

@@ -89,7 +89,7 @@ private static String initialise(Token currentToken,
int[][] expectedTokenSequences,
String[] tokenImage) {
String eol = System.getProperty("line.separator", "\n");
StringBuffer expected = new StringBuffer();
StringBuilder expected = new StringBuilder();
Copy link
Contributor

Choose a reason for hiding this comment

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

You're updating a bunch of autogen code... it will just get undone the next time these tools get updated. I'm pretty averse to separating this out myself

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, any hint about those tools, how can one run/change them?

@AngledLuffa
Copy link
Contributor

AngledLuffa commented Mar 3, 2020 via email

@AngledLuffa
Copy link
Contributor

We integrated the updated javacc, so if you're up for revisiting this old PR, we'd be able to integrate it now

@AngledLuffa
Copy link
Contributor

I rebased it against dev and merged it here:

#1115

@AngledLuffa
Copy link
Contributor

Thanks!

@asashour asashour deleted the StringBuilder branch November 30, 2020 06:30
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.

2 participants