rspec/rules/S1076/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

26 lines
795 B
Plaintext

== Why is this an issue?
Since Java 5, <code>StringBuffer</code> has been supplemented with an equivalent class designed for use by a single thread, <code>StringBuilder</code>.
<code>StringBuilder</code> is faster, as it performs no synchronization, and should be preferred.
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
=== is related to: S1149
=== on 8 Aug 2013, 06:05:30 Dinesh Bolkensteyn wrote:
Perhaps this rule should be merged with RSPEC-1149, as it's again about synchronized classes.
=== on 8 Aug 2013, 06:19:35 Dinesh Bolkensteyn wrote:
Implemented by \https://jira.codehaus.org/browse/SONARJAVA-179
=== on 8 Aug 2013, 12:36:43 Freddy Mallet wrote:
This rule spec has been merged with RSPEC-1149
endif::env-github,rspecator-view[]