黄磊的博客 - “空指针异常”是我家常便饭？Optional教你优雅地避免NPE 的评论
type: channel
link: https://www.huangleicole.com/backend-related/10.html
description: NullPointerException(NPE) 绝对是Java新手的头号杀手。我曾经写过无数if (obj != null)的判断，代码又臭又长。后来，我遇到了java.util.Optio...