Hi I'm using Project Lombok (version 0.11.2) in a project. I have both Intellij, and Eclipse (STS) installed, with lombok integrated with both IDEs (STS, via the lombok JAR, IntelliJ via the plugin [version 0.4, released 22/01/12]).

When I try to use the 'val' data type in IntelliJ, it fails to recognise the resulting types, however the same code works in STS.

Is this an issue with the IntelliJ plugin, or does the plugin just not support this feature?

val types were added in lombok 0.10.0, so are not a new feature.

有帮助吗?

解决方案

At this time, according to the documentation of the Lombok IntelliJ Plugin, this is not yet supported.

Disclosure: I am one of the core Lombok developers.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top