laegirl
laegirl

Reputation: 306

How do I suppress this warning?

How do I make intellij shut up about "Class can be a record" warning? The quickfixes it suggests are just making the class a record.

Upvotes: 5

Views: 1910

Answers (1)

vintprox
vintprox

Reputation: 1141

Since there is no clear @SuppressWarnings clause for this, hiding this warning can only be directly configured in your IDE.

In fact, IntelliJ IDEA has a setting just for this.

  • In Settings window, search for Inspections "Can be a record".
  • Switch severity for Can be a record inspection to No highlighting, only fix.

IntelliJ IDEA Inspections

Upvotes: 10

Related Questions