Skip to content

Commit

Permalink
Avoid compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Jan 19, 2024
1 parent 0e907df commit 2caef35
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public void execute(TaskExecutionGraph graph) {
* A closure to execute an action on the {@link TaskExecutionGraph}. Older Gradle versions do not offer an overloaded method that accepts an
* action such that a dispatch requires an explicit wrapping with a {@link Closure}.
*/
@SuppressWarnings("serial")
protected static class TaskExecutionGraphClosure extends Closure<Void> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class ByteBuddyJarTask extends AbstractByteBuddyTask {
* Creates a new simple Byte Buddy task.
*/
@Inject
@SuppressWarnings("this-escape")
public ByteBuddyJarTask() {
new ByteBuddyJarTaskExtension(null).configure(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class ByteBuddySimpleTask extends AbstractByteBuddyTask {
* Creates a new simple Byte Buddy task.
*/
@Inject
@SuppressWarnings("this-escape")
public ByteBuddySimpleTask() {
new ByteBuddySimpleTaskExtension(null).configure(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public abstract class ByteBuddyTask extends AbstractByteBuddyTask {
* Creates a new Byte Buddy task.
*/
@Inject
@SuppressWarnings("this-escape")
public ByteBuddyTask() {
new ByteBuddyTaskExtension(null).configure(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.io.Serializable;

/**
* Describes an argument to a {@link Plugin} constuctor.
* Describes an argument to a {@link Plugin} constructor.
*/
public class PluginArgument implements Serializable {

Expand All @@ -43,6 +43,7 @@ public class PluginArgument implements Serializable {
* The argument value.
*/
@MaybeNull
@SuppressWarnings("serial")
private Object value;

/**
Expand Down

0 comments on commit 2caef35

Please sign in to comment.