I'm using Gradle to include Lombok, and I'm using the freefair lombok plugin, as recommended;
plugins {
id "io.freefair.lombok" version "6.0.0-m2"
// ...
}
Given the following class:
/**
* Request to add a task to an existing todo list.
*
* @author b_muth
*
*/
@Value
public class AddTaskRequest{
/**
* Identifier of the list.
*/
@NonNull UUID todoListId;
/**
* Name of the task to be added.
*/
@NonNull String taskName;
}
I get the following warnings:
C:\...\generated\sources\delombok\...\AddTaskRequest.java:23: warning: no comment
public AddTaskRequest(@NonNull final UUID todoListId, @NonNull final String taskName)
C:\...\generated\sources\delombok\...\AddTaskRequest.java:38: warning: no @return
public UUID getTodoListId() {
and there are much more. As far as I can tell, freefair uses delombok, but doesn't create adequate JavaDoc in the generated sources. Here's an excerpt from the generated class:
/**
* Request to add a task to an existing todo list.
*
* @author b_muth
*/
public final class AddTaskRequest {
/**
* Identifier of the list.
*/
@NonNull
private final UUID todoListId;
/**
* Name of the task to be added.
*/
@NonNull
private final String taskName;
public AddTaskRequest(@NonNull final UUID todoListId, @NonNull final String taskName) {
if (todoListId == null) {
throw new NullPointerException("todoListId is marked non-null but is null");
}
if (taskName == null) {
throw new NullPointerException("taskName is marked non-null but is null");
}
this.todoListId = todoListId;
this.taskName = taskName;
}
/**
* Identifier of the list.
*/
@NonNull
public UUID getTodoListId() {
return this.todoListId;
}
...
}
Is there to stop these warnings from occuring?