New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate asList
in favor of asInstanceOf
#3138
Conversation
Hi, there are no JavaDocs pointing to the proposed alternative. I had to scavenge the source code to reach to this PR. Might be interesting to provide the suggested approach. asInstanceOf(InstanceOfAssertFactories.LIST) instead |
Hi @manusa, which Javadoc were you looking at exactly?
but I just realized |
🤦 sorry. Yes, I was meaning the method in the |
Thanks for the confirmation. There seems to be a gap in the Javadoc generation, I'm not sure what could be done in AssertJ but I'll have a look. |
No worries. If not, I'm happy to send a patch with the missing section in |
OK, I think the problem is (TIL) that inheritDoc needs to be used in the tags too. https://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#@inheritDoc
So I believe something like this is required: /**
* {@inheritDoc}
* @return {@inheritDoc}
* @deprecated the deprecation method that can't be inherited
*/ |
Thanks, I remembered something like that but couldn't find the official reference quickly 🙂 It doesn't mention anything about the |
I'll submit a patch to add the deprecation suggestion manually. I've done some checks in my projects and the behavior differs depending on the engine used to generate Javadocs. For example, in IntelliJ, if the In any case, and a common denominator for all is that the |
Triggered by #3105 (comment).