Skip to content

p3c规则扫描bug,Integer数组长度比较问题 #209

Closed
@xiaomin0322

Description

伪代码:
Integer[] a ;
Integer[] b ;
if(a.length == b.length){
}
扫描报 Integer 不能用==,建议用equals方法
这种场景不应该报吧

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions