Skip to content

18. Lombok

Ilkka Seppälä edited this page Dec 6, 2020 · 8 revisions

We use Lombok's simple annotations to get rid of boilerplate, but at the same time detain ourselves from using the more complex ones not to sacrifice readability. Here's the list of allowed Lombok annotations

  • NoArgsConstructor
  • RequiredArgsConstructor
  • AllArgsConstructor
  • Getter
  • Setter
  • Slf4j
  • ToString
  • EqualsAndHashCode