[
https://issues.apache.org/jira/browse/WICKET-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-3712.
-------------------------------------
Resolution: Won't Fix
I agree that those are improvements but they are rather minor ones. There are
no profiler probes that show any problems with these so far.
I suggest instead of doing big changes created by scripts to improve the code
when we actually change the .java file for some other reason. This way the
change will be tested immediately together with the actual fix/improvement.
> Replace "<single-character>" with '<single-characte>' when appending
> StringBuilder
> ----------------------------------------------------------------------------------
>
> Key: WICKET-3712
> URL: https://issues.apache.org/jira/browse/WICKET-3712
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 1.5-RC4
> Environment: all
> Reporter: Richard Emberson
> Priority: Trivial
>
> I noted that someone changed a couple of places where this occurs in the RC3
> to RC4 upgrade;
> changing '[" to '[', etc. Well, if someone is energetic, there are some 500
> places in the
> wicket core code where this could be "fixed". Appending a character is
> marginally faster than
> appending a string with a single character and it is actually more correct -
> appending a character
> rather than a string. Running the following script:
> find . -name '*.java' -type f -exec grep --with-filename '"."' {} \;
> one can find all of the lines in the src.
> If you want to write a script that fixes all places where this occurs be
> careful that you do not
> fix any of the javascript or regular expression patterns.
> The other wicket modules and test code also have characters being appended as
> strings.
> A lot of effort for a little benefit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira