Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Replace StringBuilder with String concatenation, as suggested by IntelliJ #222

Conversation

nitram509
Copy link
Contributor

Hi,

I replaced all usages of StringBuilder in child classes of Action by String concatenation.
This is a standard inspection by IntelliJ IDEA and simply makes the code shorter.
Therefore I simply applied the IntelliJ quick fix.

IntelliJ code inspection, cite:
"Reports any variables declared as or uses of java.lang.StringBuffer and java.lang.StringBuilder which can be replaced with a single java.lang.String concatenation. Using a String concatenation makes the code shorter and simpler. This inspection only reports when the resulting concatenation is at least as efficient or more efficient than the original StringBuffer or StringBuilder use."

(IntelliJ code inspection, cite: "Reports any variables declared as or uses of java.lang.StringBuffer and java.lang.StringBuilder which can be replaced with a single java.lang.String concatenation. Using a String concatenation makes the code shorter and simpler. This inspection only reports when the resulting concatenation is at least as efficient or more efficient than the original StringBuffer or StringBuilder use.")
kramer pushed a commit that referenced this pull request Jul 12, 2015
…ing-concatenation

Replace StringBuilder with String concatenation, as suggested by IntelliJ
@kramer kramer merged commit 715627c into searchbox-io:master Jul 12, 2015
@kramer
Copy link
Member

kramer commented Jul 12, 2015

Thanks for your contribution @nitram509 !

@nitram509 nitram509 deleted the replace-stringbuilder-with-string-concatenation branch July 12, 2015 12:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants