
и в Сборка, выполнение, развертывание | Компилятор | Обработчики аннотаций
- Флажок «Включить обработку аннотаций» установлен
- Выбран вариант «Получить процессоры из пути к классам проекта»

Я написал свой первый тест
Код: Выделить всё
import lombok.*;
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@EqualsAndHashCode
@ToString
public class Author {
private int id;
private String name;
private String surname;
private String email;
private final String birthPlace = "Somewhere";
/**
* This is the constructor of the Author class
*
* @param id This is the author identifier
* @param name This is the first name of the author
* @param surname This is the last name of the author
*/
public Author(
@NonNull int id,
@NonNull String name,
String surname
) {
this.id = id;
this.name = name;
this.surname = surname;
}
}
Обновить
Следуя комментариям и этому документу, я изменил код вот так:
Код: Выделить всё
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ToString
public class Author {
/**
* Author identification
*
* @param id New value for the author identification
* @return The current value of this author identification
*/
@Getter @Setter private int id;
}

Результат не включает документацию для идентификатора или других полей.

Подробнее здесь: https://stackoverflow.com/questions/798 ... g-intellij
Мобильная версия