Feature Request: Feature parity between ContractAnnotationAttribute (R#, Rider) and @Contract (IntelliJ)


I've been using the ContractAnnotationAttribute and really like the idea.

As I was trying to learn more about the syntax, I found the documentation for IntelliJ's @Contract annotation, which appears to serve a similar purpose for Java projects. Unfortunately, a lot of the syntax it supports doesn't work with ContractAnnotationAttribute.

Specifically, the "new", "this", and "param1..." keywords would be really nice to have. Ideally though, it would be great if ContractAnnotationAttribute could support the entire syntax provided by @Contract, in both ReSharper and Rider.

Comment actions Permalink

I only regret, that I have but one vote to cast for this feature request!

Comment actions Permalink


thank you for the feedback.

I've filed a corresponding feature request - https://youtrack.jetbrains.com/issue/RSRP-478850.

You are welcome to comment or vote for it.

Thank you.


Please sign in to leave a comment.