A RetroSearch Logo

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

Search Query:

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

False positive when `valueOf(char [], int, int)` is used · Issue #3491 · pmd/pmd · GitHub

Affects PMD Version: 6.37.0

Rule: UselessStringValueOf

Description: False positive for UselessStringValueOf when valueOf(char [], int, int) is used

Code Sample demonstrating the issue:
ab37b1c/#3490

public class Test {
    public String test(char buf[], int offset, int len) {
        print("XML Parser characters: " + String.valueOf(buf, offset, len));
    }
}

Expected outcome:

PMD reports a violation at line 3, but that's wrong. That's a false positive.

Running PMD through: Maven


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