Android Studio supports annotations for variables, parameters, and return values to help you catch bugs, such as null pointer exceptions and resource type conflicts.
Android Studio 支持为变量、参数和返回值添加注解,以帮助您捕捉错误,例如 null 指针异常和资源类型冲突。
if there is no token or value action prog, add a NULL pointer, '$' to represent a Token
Using Optional forces you to more actively unquote Optional objects to address the problem of missing variable values, and in the end, you can more effectively prevent unexpected null pointer exceptions in your code.
passing a NULL pointer as an input parameter generates an error
将空指针作为输入参数传递将会产生错误
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.