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

Answered

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.

 

2 comments
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.

0
Comment actions Permalink

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

0

Please sign in to leave a comment.