yegor256 / qulice

Quality Police for Java projects: aggregator of Checkstyle and PMD
https://www.qulice.com
Other
301 stars 111 forks source link

False positive with ConstantUsageCheck #846

Open pkpio opened 7 years ago

pkpio commented 7 years ago

In situations such as the one below,

public final class Param {
    public static final String OP_ONE = Param.OP_ZERO + "blah1";
    public static final String OP_TWO = Param.OP_ZERO + "blah1";
    private static final String OP_ZERO = "Something private";
}

PS: Deliberatily overlooked some other qulice rules for brevity.

0crat commented 7 years ago

@krzyk please, pay attention to this issue