Skip to content

删除代码规范第三条“当方法返回值可能为null时,应使用Optional作为返回值” #115

Description

@mouse0w0

鉴于该条规范长期以来未得到有效实施,并且现代IDE(如IntelliJ)已经能在开发环境中对代码进行分析,并给出非空安全的警告,决定将代码规范第三条与第二条合并,改为:

2. 当方法参数和返回值可能为null时,应添加@javax.annotation.Nullable注解。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions