A RetroSearch Logo

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

Search Query:

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

[java] RedundantFieldInitializer - NumberFormatException with Long · Issue #1298 · pmd/pmd · GitHub

Affects PMD Version: 6.7.0-SNAPSHOT (and earlier)

Rule: java-performance/RedundantFieldInitializer

Description: The rule fails to parse 0xffffffffffffffffL with a NumberFormatException.

Code Sample demonstrating the issue:

public class RedundantFieldInitializerTest {
    private long hexLongMinusOne = 0xffffffffffffffffL;
}

Running PMD through: any

Thanks to @djydewang for finding this bug!


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