rspec/rules/S1527/java/rule.adoc

22 lines
513 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +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;
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]