IntelliJ IDEA 2022.2 EAP 4: Improved Inspections and Code Completion for Java
IntelliJ IDEA 2022.2 EAP 4 is now out! This EAP build features Java-related updates that provide improved code completion and better code analysis via new inspections and quick-fixes.
Throughout the Early Access Program, we encourage you to test out all of the new features and share your thoughts and suggestions with us.
Now, let’s get to the updates bundled inside the fourth EAP build.
New Java inspections
Deep data flow analysis is now used in the ‘equals’ between objects of inconvertible types inspection. This can detect problems even if declared variable types are the same.
There’s a new inspection that warns you when pattern variables hide fields.
The Standard ‘Charset’ object can be used inspection has been improved and now recognizes .name() and .toString().
The IDE now provides better reporting and suggests a quick-fix when unexpected unboxing causes NullPointerException in a ternary operator.
Another new inspection catches meaningless Objects.requireNonNullElse calls.
We’ve also upgraded the Raw use of parameterized class inspection with a quick-fix that adds a diamond operator when constructing raw types.
The Javadoc declaration problems inspection got a new quick-fix to remove redundant @throws from documentation when the method doesn’t provide the throws section.
A number of JUnit-related Java inspections were converted to JVM inspections, so they are now also available in Kotlin. This includes the Unconstructable JUnit test class and JUnit malformed declaration.
Improved code completion
Code completion was improved and now works for .class literals where applicable.
These are the key updates for this week, and the full list of newly introduced changes is available in the release notes. Stay tuned for more improvements coming next week!
Subscribe to Blog updates
IntelliJ IDEA 2024.1 EAP 6: Improved Workflow for Logs, Inline Breakpoints, In-Editor Code Review, and MoreEarly Access Program
IntelliJ IDEA 2024.1 EAP 6 is here! This new build is packed with a bunch of updates anticipated for the next major release. Highlights include an enhanced user experience with logs, advanced debugging capabilities, and improved integration with version control systems. You can download the new v…
The New Terminal (Beta) Is Now in JetBrains IDEs
The new terminal (Beta) is now in JetBrains IDEs and will be available in the new UI starting from the 2024.1 version of the IDEs.
‘HelloWorld’ and ‘main()’ meet minimalistic
"Just ignore the terms class, public, static and arg for now; we'll talk about it later". If you have ever mentioned these lines to a new Java student, who is about to execute their first 'HelloWorld' program, know that this is changing. If you are that student, well, congratulations, getting starte…
IntelliJ IDEA 2024.1 EAP 5: Enhanced Support for GitHub Actions, Updates for the HTTP Client, and MoreEarly Access Program
Packed with numerous new features and enhancements, IntelliJ IDEA 2024.1 EAP 5 brings extended support for GitHub Actions, improved integration with popular frameworks such as Spring and Quarkus, updates to the HTTP Client, and much more.