org.sonar.l10n.java.rules.squid.S1197.html Maven / Gradle / Ivy
Array designators should always be located on the type for better code readability.
Otherwise, developers must look both at the type and the variable name to know whether or
not a variable is an array.
Noncompliant Code Example
int matrix[][]; // Noncompliant
int[] matrix[]; // Noncompliant
Compliant Solution
int[][] matrix; // Compliant
© 2015 - 2025 Weber Informatics LLC | Privacy Policy