Fix checkstyle/license/gen code

Dieser Commit ist enthalten in:
Kenzie Togami 2019-04-23 15:44:33 -07:00
Ursprung 20da6227d4
Commit 6d4982f23a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 5D200B325E157A81
4 geänderte Dateien mit 46 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -35,7 +35,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* Commands to undo, redo, and clear history. * Commands to undo, redo, and clear history.
*/ */
@CommandContainer(superTypes = CommandPermissionsConditionGenerator.class) @CommandContainer(superTypes = CommandPermissionsConditionGenerator.Registration.class)
public class HistoryCommands { public class HistoryCommands {
private final WorldEdit worldEdit; private final WorldEdit worldEdit;
@ -86,7 +86,7 @@ public class HistoryCommands {
@Command( @Command(
name = "redo", name = "redo",
aliases = { "redo" }, aliases = { "/redo" },
desc = "Redoes the last action (from history)" desc = "Redoes the last action (from history)"
) )
@CommandPermissions("worldedit.history.redo") @CommandPermissions("worldedit.history.redo")

Datei anzeigen

@ -1,3 +1,22 @@
/*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.sk89q.worldedit.command.argument; package com.sk89q.worldedit.command.argument;
import com.google.common.base.Splitter; import com.google.common.base.Splitter;

Datei anzeigen

@ -31,7 +31,7 @@ import java.util.Set;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
@NonnullByDefault @NonnullByDefault
public class CommandPermissionsConditionGenerator implements CommandConditionGenerator { public final class CommandPermissionsConditionGenerator implements CommandConditionGenerator {
public interface Registration { public interface Registration {
Registration commandPermissionsConditionGenerator(CommandPermissionsConditionGenerator generator); Registration commandPermissionsConditionGenerator(CommandPermissionsConditionGenerator generator);

Datei anzeigen

@ -1,3 +1,22 @@
/*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.sk89q.worldedit.extension.platform; package com.sk89q.worldedit.extension.platform;
import com.google.auto.value.AutoAnnotation; import com.google.auto.value.AutoAnnotation;
@ -13,4 +32,7 @@ class Annotations {
return new AutoAnnotation_Annotations_radii(value); return new AutoAnnotation_Annotations_radii(value);
} }
private Annotations() {
}
} }