The Beta 2 version of IDEA 2022.1 has been released! Let’s take a look at some of the most important updates for us Java developers.

Java to enhance

With the official release of Java 18, IDEA quickly followed in this release. Currently supported functions include:

@ snippet tag

To simplify including sample source code in API documentation, the @Snipket tag for the standard Doclet for JavaDoc was introduced in JDK 18. So, in this release, you can add some sample code to comments like this.

The switch to enhance

The Switch expression pattern matching specification introduced in JDK 17 has also been updated this time, with both basic updates supported in this version of IntelliJ IDEA.

Other updates

  1. In JDK18, the default character set is utF-8, rather than having a different default character set depending on the platform.
  2. Non-static inner classes do not catch unused onesthis, so the warning will no longer trigger

JUnit 5 enhancement

Added support for new features introduced in JUnit 5.7, including support for @enabledif /DisabledIf, @nullSource /emptySource, and @tempdir annotations.

Editor optimization

Incorrect Formatting is implemented and IDEA will notify the developer if the current format of a file does not match the code style Settings. You can turn it on or off in the following ways.

There are only a few DD concerns listed here, as well as other updates, which you can see in the links in Resources.

The resources

  • Blog.jetbrains.com/idea/2022/0…

Welcome to pay attention to my public number: program ape DD. Learn cutting-edge industry news, share in-depth technical know-how, and obtain high-quality learning resources at the first time