rspec/rules/S5868/java/rule.adoc

27 lines
460 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
----
"cc̈d̈d".replaceAll("[c̈d̈]", "X"); // Noncompliant, print "XXXXXX" instead of expected "cXXd".
----
== Compliant Solution
----
"cc̈d̈d".replaceAll("c̈|d̈", "X"); // print "cXXd"
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
endif::env-github,rspecator-view[]