Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #665 from book000/fix/Cmd-record
Browse files Browse the repository at this point in the history
fix: CmdがレコードだとIDEAがエラー吐くのでclassに戻し
  • Loading branch information
book000 authored Jan 24, 2022
2 parents 25d70a9 + 12c01ed commit cf08a42
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/jaoafa/mymaid4/lib/MyMaidCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ public String getDescription() {
}
}

public record Cmd(Command<CommandSender>... commands) {
@SuppressWarnings("ClassCanBeRecord")
public static class Cmd {
private final Command<CommandSender>[] commands;

@SafeVarargs
public Cmd {
public Cmd(Command<CommandSender>... commands) {
this.commands = commands;
}

/**
Expand Down

0 comments on commit cf08a42

Please sign in to comment.