#933·javapoet

`ParameterizedTypeName#annotated` 会重复添加注解。

作者: zhengxiaoyao0716创建于 2022年10月9日更新于 2022年10月9日

当我们首次使用 `#annotated(A, B, C)` 方法时,它会将注释分别添加到 `ParameterizedTypeName.this.rawType` 和 `TypeName.this.annotations` 中,而如果我们再次使用 `#annotated()` 方法,注释 `A, B, C` 将会重复添加到 `rawType` 中。

内容来源: square/javapoet