2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2022-02-01 14:30:28 +01:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Noncompliant code example
|
2022-02-01 14:30:28 +01:00
|
|
|
|
|
|
|
[source,java]
|
|
|
|
----
|
|
|
|
"a[b]c"
|
2022-04-28 16:22:12 +02:00
|
|
|
"[\\^]"
|
2022-02-01 14:30:28 +01:00
|
|
|
----
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Compliant solution
|
2022-02-01 14:30:28 +01:00
|
|
|
|
|
|
|
[source,java]
|
|
|
|
----
|
|
|
|
"abc"
|
2022-04-28 16:22:12 +02:00
|
|
|
"\\^"
|
|
|
|
"a[*]c" // Compliant, see Exceptions
|
2022-02-01 14:30:28 +01:00
|
|
|
----
|
|
|
|
|
|
|
|
include::../exceptions.adoc[]
|
|
|
|
|
|
|
|
include::../implementation.adoc[]
|