Class OptionalMapUnusedValue

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.OptionalMapUnusedValue
All Implemented Interfaces:
BugChecker.MethodInvocationTreeMatcher, Suppressible, Serializable

public final class OptionalMapUnusedValue extends BugChecker implements BugChecker.MethodInvocationTreeMatcher
Replaces Optional.map with Optional.ifPresent if the value is unused.
See Also: