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
Thanks, we've got you!
IntelliJ IDEA 2023.3 EAP 2: All-in-One Diff Viewer, Run to Cursor Inlay Option, And MoreEarly Access Program
The second EAP build for IntelliJ IDEA 2023.3 is now available. It introduces enhancements designed to streamline code reviews, simplify the debugging workflow, and accelerate the startup process for both Maven and Gradle projects.
IntelliJ IDEA 2023.3 EAP Is Open!
The IntelliJ IDEA 2023.3 Early Access Program kicks off today! Read this blog post to explore the new features you can test in the first EAP build.
Import Postman Collections to the HTTP Client
We know that many of you use Postman collections and want to stay in the flow while working with them. This means staying inside IntelliJ IDEA and not switching to a different app. Great news! You can now effortlessly transform Postman collections into .http and use them in the HTTP Client …
Java Annotated Monthly – September 2023
The September edition of Java Annotated Monthly is here! With this month’s release of Java 21 approaching, we're excited to bring you a final sneak peek into its crucial features. But that's not all! This edition is packed with helpful articles about cutting-edge AI technologies, including update…