Skip to content

Unnecessary class: com.alibaba.nacos.common.utils.Objects #6197

@SunJiFengPlus

Description

@SunJiFengPlus

Issue Description

com.alibaba.nacos.common.utils.Objects and java.util.Objects have most of the same code.

The only difference is that com.alibaba.nacos.common.utils.Objects::requireNonNullElse, I did a global search and there was no other place to use it, Optional can be instead of this method.

So I wonder if I can delete it.

if it pass, i can do this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions