kozmoz / atag-one-api

ATAG ONE API
MIT License
18 stars 3 forks source link

Use Lombok's val keyword for local final variables #24

Closed kozmoz closed 6 years ago

kozmoz commented 6 years ago

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.

https://www.projectlombok.org/features/val