A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/658 below:

False positive for loops · Issue #658 · pmd/pmd · GitHub

[java]

Error prone

Description:
Use one line for each declaration, it enhances code readability.

Code Sample demonstrating the issue:

for (int i = start, j = 0; i < l; i++, j++) {

or

for (int i = 0, l = c.size() ; i < l; i++) {

=>

Is the resolution really more readable?:

for (int i = start,
        j = 0;
        i < l;
        i++,
         j++) {

Running PMD through: Other


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4