SonarLint: Java - Modifiers should be declared in the correct order (squid:ModifiersOrderCheck)
I love learning about technology and sharing that with others
The correct order of the modifier in the java is
The Java Language Specification recommends listing modifiers in the following order:
Annotations
public
protected
private
abstract
static
final
transient
volatile
synchronized
native
strictfp
Not following this convention has no technical impact, but will reduce the code's readability because most developers are used to the standard order.
Non-Compliant code
private final static Collection<String> RELEVANT_SEARCHERS
Compliant Code
- here we have moved the final after the static according to the conventions
private static final Collection<String> RELEVANT_SEARCHERS

