2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2022-05-04 10:21:36 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Noncompliant code example
|
2022-05-04 10:21:36 +02:00
|
|
|
|
|
|
|
[source,java]
|
|
|
|
----
|
|
|
|
"foo()" // Noncompliant, will match only 'foo'
|
|
|
|
----
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Compliant solution
|
2022-05-04 10:21:36 +02:00
|
|
|
|
|
|
|
[source,java]
|
|
|
|
----
|
|
|
|
"foo\\(\\)" // Matches 'foo()'
|
|
|
|
----
|
|
|
|
|
|
|
|
include::../implementation.adoc[]
|