Skip to content

False positive for UnsupportedDefaultValue on nullable int paramater #28

@jonathanalgar

Description

@jonathanalgar

A parameter declared as a nullable int (int?) is incorrectly flagged by the analyzer as having an unsupported default value.

This false positive occurs because the analyzer does not unwrap the nullable type before validating the default value, thereby treating int? as if it were an unsupported type rather than evaluating its underlying int type.

Image
(Code: https://github.com/agmv/AGV.ZXing)

Thanks @agmv for reporting.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions