The JetBrains Guide is shutting down on March 30, 2026. more...

Identify and Fix Deprecated Calls

IntelliJ IDEA will warn you if you're using deprecated methods, and they will be shown with a strikethrough if they're marked for removal.

Tip Screenshot

IntelliJ IDEA shows deprecated methods that are marked for removal with a red strikethrough. JDK 16 has marked the wrapper class constructors for removal, so you'll see these with a red strikethrough in IntelliJ IDEA.

Related Resources

Add arguments
Add arguments
Add args to your main method.
Compact source file
Compact source file
Create a compact source file in IntelliJ IDEA.
Convert compact source file to class
Convert compact source file to class
Convert a compact source file to a class in IntelliJ IDEA.