chore: make code style consistent

This commit is contained in:
Citymonstret 2022-06-10 10:24:50 +02:00 committed by Jason
parent a2cea2f33e
commit 89ec3fbf29
380 changed files with 479 additions and 936 deletions

View file

@ -601,7 +601,5 @@ public final class ExamplePlugin extends JavaPlugin {
* @return Required game mode
*/
GameMode value();
}
}

View file

@ -45,6 +45,7 @@ import org.checkerframework.framework.qual.DefaultQualifier;
@DefaultQualifier(NonNull.class)
final class Mc113 {
private final BukkitCommandManager<CommandSender> manager;
Mc113(final BukkitCommandManager<CommandSender> manager) {
@ -98,5 +99,4 @@ final class Mc113 {
ctx.getSender().sendMessage("result: " + predicate.test(
protoItemStack.createItemStack(1, true)));
}
}

View file

@ -148,5 +148,4 @@ public final class ExamplePlugin extends Plugin {
})
);
}
}

View file

@ -57,5 +57,4 @@ public final class ExampleBot {
SimplixInstaller.instance().install(Platform.STANDALONE);
}
}

View file

@ -119,5 +119,4 @@ public class ExampleApplication {
this.discordApiComponent.shutdown();
System.exit(0);
}
}

View file

@ -100,5 +100,4 @@ public class CommandsComponent {
Preconditions.checkNotNull(this.commandManager, "Command Manager has not been initialized yet");
return this.commandManager;
}
}

View file

@ -99,5 +99,4 @@ public class DiscordApiComponent {
CONNECTED,
DISCONNECTED
}
}

View file

@ -47,5 +47,4 @@ public class ExampleModule extends AbstractSimplixModule {
public final @NonNull ScheduledExecutorService provideExecutorService() {
return Executors.newScheduledThreadPool(0);
}
}

View file

@ -79,5 +79,4 @@ public abstract class CustomUser {
public final @NonNull MessageChannel getChannel() {
return this.channel;
}
}

View file

@ -148,5 +148,4 @@ public final class ExampleBot {
textChannel.sendMessage(user.getName() + " kicked").complete();
}));
}
}

View file

@ -41,7 +41,11 @@ public final class GuildUser extends CustomUser {
* @param member Guild member that sent the message
* @param channel Text channel that the message was sent in
*/
public GuildUser(final @Nullable MessageReceivedEvent event, final @NonNull Member member, final @NonNull TextChannel channel) {
public GuildUser(
final @Nullable MessageReceivedEvent event,
final @NonNull Member member,
final @NonNull TextChannel channel
) {
super(event, member.getUser(), channel);
this.member = member;
this.channel = channel;
@ -64,5 +68,4 @@ public final class GuildUser extends CustomUser {
public @NonNull TextChannel getTextChannel() {
return this.channel;
}
}

View file

@ -73,5 +73,4 @@ public final class PermissionRegistry {
this.permissions.putIfAbsent(userId, new HashSet<>());
return this.permissions.get(userId);
}
}

View file

@ -40,7 +40,11 @@ public final class PrivateUser extends CustomUser {
* @param user User that sent the message
* @param channel Text channel that the message was sent in
*/
public PrivateUser(final @Nullable MessageReceivedEvent event, final @NonNull User user, final @NonNull PrivateChannel channel) {
public PrivateUser(
final @Nullable MessageReceivedEvent event,
final @NonNull User user,
final @NonNull PrivateChannel channel
) {
super(event, user, channel);
this.privateChannel = channel;
}
@ -53,5 +57,4 @@ public final class PrivateUser extends CustomUser {
public @NonNull PrivateChannel getPrivateChannel() {
return this.privateChannel;
}
}

View file

@ -118,5 +118,4 @@ public final class ExampleVelocityPlugin {
})
);
}
}