Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

"Prohibited method" inspection?

$
0
0

Is there any way to have IntelliJ warn when a method is called other than modifying it and adding the @Deprecated annotation?

 

In our case, we never want "Collections.unmodifiableCollection", because we don't like its equals and hashCode semantics. We'd prefer IntelliJ to remind us not to use it rather than having to find it manually in Code Review.

 

There are probably other examples where a list of methods we don't want to be called would be nice. Does it exist?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>