Suggestion: suggest hasValue for optionals #11
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We have the following code:
where
response.getBody()
returns an optional String.what I think would be a good suggestion, is the following:
Could that be a reasonable addition to this plugin?
Hmmm... I'm confused. This should be included in the
AssertThatJava8Optional
inspection. From the Readme:It uses contains() though to which hasValue() is an alias.
I just checked the plugin manually and it does suggest the change in my case.
Can you produce a code fragment that does not come up with the inspection as expected? Thanks.