We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Optional
GraphWrapper
1 parent 69ea1ba commit 1fda009Copy full SHA for 1fda009
core/src/main/java/com/google/errorprone/bugpatterns/NonApiType.java
@@ -89,10 +89,12 @@ public final class NonApiType extends BugChecker implements MethodTreeMatcher {
89
// Optionals
90
withPublicVisibility(
91
isExactType("java.util.Optional"),
92
+ NON_GRAPH_WRAPPER,
93
"Avoid Optional parameters. " + OPTIONAL_AS_PARAM_LINK,
94
ApiElementType.PARAMETER),
95
96
isExactType("com.google.common.base.Optional"),
97
98
"Prefer a java.util.Optional instead. " + PREFER_JDK_OPTIONAL_LINK,
99
ApiElementType.ANY),
100
0 commit comments