21 lines
344 B
Plaintext
21 lines
344 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
== Noncompliant Code Example
|
||
|
|
||
|
With the default regular expression <code>^[a-z][a-zA-Z0-9_]*$</code>:
|
||
|
----
|
||
|
public void doSomething(Integer PARAM) { // Noncompliant
|
||
|
Integer LOCAL; // Noncompliant
|
||
|
...
|
||
|
}
|
||
|
----
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
public void doSomething(Integer param) {
|
||
|
Integer local;
|
||
|
...
|
||
|
}
|
||
|
----
|