rspec/rules/S1527/java/rule.adoc

14 lines
345 B
Plaintext
Raw Normal View History

2020-12-23 14:59:06 +01:00
In Java 8, underscore (``_``) cannot be used as a parameter to a lambda, and by Java 9, it's a keyword. To ensure future portability (not to mention current readability), it should not be used now as an identifier.
2020-06-30 12:47:33 +02:00
== Noncompliant Code Example
----
private String _; // Noncompliant
----
== Compliant Solution
----
private String foo;
----