...
| Code Block | ||
|---|---|---|
| ||
int i = 1; int j = 1; |
...
Noncompliant Example
In this noncompliant example, the programmer declared multiple variables, including an array, on the same line. All instances of the type T have access to methods of the class Object. However, it is easy to miss that arrays need special treatment when some of these methods are overridden. Oversights of this genre typically go undetected by compilers and IDEs, alike.
...