Why the HashMap class is marked as "Deprecated classes usages" by IntelliJ Plugin Verifier?


When I upload my plugin to the markerplace, the IntelliJ Plugin Verifier always reports HashMap as deprecated:

"Deprecated class HashMap is referenced in ..."

Why is that?

In the IDE, during development though everything is fine.


Comment actions Permalink

I assume you refer to com.intellij.util.containers.HashMap

Please replace usages with regular java.util.HashMap.

Plugin Verifier most likely checks against later platform releases (where the deprecation was added), than the one you're compiling against.

Comment actions Permalink

Ah indeed. I haven't realized I used a different HashMap. Thanks!


Please sign in to leave a comment.