What’s new in IntelliJ IDEA 2019.1 EAP2?

A new EAP build for the upcoming IntelliJ IDEA 2019.1 is now ready for you to try. It comes with better data flow analysis, JVM Debugger improvements, Kotlin 1.3.20, and Maven 3.6.0. Let’s dive into the details.

Java

Data Flow analysis enhancements

With each major release we improve our data flow analysis, and as you may have come to expect, this release is no different.

Precise warning highlighting in the ternary expressions

With IntelliJ IDEA 2019.1 we’ve improved the precision of the warning highlighting for ternary expressions. Now the IDE will only highlight a condition in which a nullability violation is detected, previously the IDE highlighted the whole ternary expression, even when the nullability was only violated in a single branch.
Thanks to this new feature you now have precise highlighting in the switch expressions too.

JavaDFATernary

Improved analysis of mathematical operations

Now the data flow analysis tracks the value of mathematical operations and uses this information to warn you about the conditions that are always true or false. With this upcoming release, the analysis of many math operations was improved including multiplication, remainder, and bitwise operations.

JavaDFAMath1

JavaDFAMath2

Inference of the constructor’s purity from sources

The upcoming IntelliJ IDEA 2019.1 improves the support for the @Contract annotations. The IDE can now automatically infer the purity of constructors from sources and adds annotations icon in the gutter which you can click on and the IDE adds a @Contract(pure = true) annotation to your codebase. The constructor purity was already inferred for library code and now it works for source files as well.

JavaConstrPurity

Also, IntelliJ IDEA now enables non-null parameter inference for non-stable source methods. If a method can be overridden, but the base class implementation unconditionally dereferences the parameter, we believe that in such cases it’s acceptable to have a not-null inference for the parameter. Please report to our issue tracker if this feature produces any false-positive nullability violation warnings in your project.

JavaDFAParam

In some cases, the IDE now can detect if the array index is out of bounds for multidimensional arrays.

JavaDataFlowMultiDimArr

Navigation from Java stack trace to the relevant position within a line

IntelliJ IDEA now tries to take you from the Java stack trace to the relevant position within a line. Previously when the link in the stack trace was clicked, it would only take you to the first column of the corresponding row, now the IDE tries to determine the exact location within the row to take the cursor to when it’s possible.

JavaNavigateStackTraces

Run Tool Window

Now the “Dump Threads” action in the Run tool window, opens the Dump tab where you can view all the thread dumps and the stack traces associated with those threads, with the most important threads shown at the top of the list. It makes it easy to locate the thread you need and to navigate to it. Previously this action printed the raw thread dump to console output, which I think we can all agree, is not very useful. Now the “Dump Threads” action invokes the same tab as the Debugger tool window.

JVMDebuggerThreadDump

JVM Debugger

Support ‘synchronized’, ‘assert’ and ‘switch’ in the debugger evaluator

With this upcoming release of IntelliJ IDEA we have improved the debugger evaluator to now support synchronized statements, assert expressions, and switch statements.

DebuggerSwitch

DebuggerAssert

Maven

We have updated the Maven version bundled with IntelliJ IDEA to v3.6.0.

Kotlin

This EAP build updates the bundled Kotlin plugin version to 1.3.20, see the Kotlin blog for details. Here’s a little more insight into what it brings you:

  • Template to generate ‘main’ without parameters.
  • Inspections to improve coroutines code.
  • New intention for converting SAM as lambda to an anonymous object.
  • String conversion improvements.

Feel free to grab a copy of the IntelliJ IDEA 2019.1 EAP build and explore all our new features! Don’t forget to share your experience with us in the comments below or the issue tracker, on Twitter, or our discussion forum.

Happy developing!

About Zlata Kalyuzhnaya

IntelliJ IDEA Marketing Manager at JetBrains. twitter: @ZlataKalyuzhnay ‏
This entry was posted in EAP Releases and tagged , . Bookmark the permalink.

6 Responses to What’s new in IntelliJ IDEA 2019.1 EAP2?

  1. Edoardo Luppi says:

    Thanks for the report. I noticed the builds with the JRE11 have been removed. Why?
    I was trying the one for Linux, and despite a little font problem, it worked fine.

  2. Joe says:

    Just FYI, the support for Gradle composite builds is totally broken in 2019.1 EAP. Same project that works just fine in 2018.x has tons of red (can’t find dependencies) and claims to not be able to find the classes with main() in them. Have tried the normal “invalidate caches/restart” step (this normally gets a composite build working again after a major version upgrade).

    2019.1 is supposed to have a lot of Gradle fixes in it, I guess it is still a work in progress this early in the EAP. I will keep trying each version of the EAP as they are released.

    • Vladislav Soroka says:

      Could you please file the issue with the attached project sample to reproduce?

      • Joe says:

        Unfortunately I can’t recreate it with a couple of small test projects tied together in a composite gradle build.

        Gradle composite builds are always broken in early EAP’s and eventually they start working again. So I will just try each EAP as they come out.

Leave a Reply

Your email address will not be published. Required fields are marked *