Intellij failure warning for java.util.HashMap

IntelliJ seems to believe that the no-arg constructor is java.util.HashMapdeprecated, as judged by the style in which it marks the name of the constructor:

enter image description here

How can I fix it if I do not want to disable checks?

UPD: IntelliJ the class seems to be java.util.HashMapdeprecated

enter image description here

+6
source share
2 answers

I had this problem with java.util.List, marked as deprecated. Somehow, I marked it as such through an “external annotation”.

To remove it:

  • Go to the source code (in my case java.util.List)
  • There should be an @ next to the type, click on it ...
  • Deannotate java.lang.Deprecated

External annotation in list

+2

JDK 1.8_131, .

UPD: JDK,

0

All Articles