rspec/rules/S6035/java/rule.adoc

29 lines
399 B
Plaintext
Raw Normal View History

include::../description.adoc[]
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
Pattern.compile("a|b|c"); // Noncompliant
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
Pattern.compile("[abc]");
// or
Pattern.compile("[a-c]");
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::highlighting.adoc[]
endif::env-github,rspecator-view[]