val was introduced in lombok 0.10. NEW in Lombok 1.18.22: val gets replaced with final var. Overview You can use val as the type of a local variable declaration instead of actually writing the type. When you do this, the type will be inferred from the initializer expression. The local variable will also be made final. This feature works on local variables and on foreach loops only, not on fields.