PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, April 26, 2022

[FIXED] How do I suppress this warning?

 April 26, 2022     intellij-idea, java, warnings     No comments   

Issue

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.


Solution

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



Answered By - vintprox
Answer Checked By - Marie Seifert (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing