fabric: fix checkstyle issues

This commit is contained in:
jmp 2021-03-13 12:37:35 -08:00 committed by Jason
parent 246fa8bc1c
commit 0d5c2b0b65
2 changed files with 5 additions and 2 deletions

View file

@ -74,7 +74,7 @@ public interface CommandPermission {
* @return a new {@code or} permission * @return a new {@code or} permission
* @since 1.4.0 * @since 1.4.0
*/ */
default @NonNull CommandPermission or(final @NonNull CommandPermission @NonNull ... other) { default @NonNull CommandPermission or(final @NonNull CommandPermission @NonNull... other) {
requireNonNull(other, "other"); requireNonNull(other, "other");
final Set<CommandPermission> permission = new HashSet<>(other.length + 1); final Set<CommandPermission> permission = new HashSet<>(other.length + 1);
permission.add(this); permission.add(this);
@ -104,7 +104,7 @@ public interface CommandPermission {
* @return a new {@code and} permission * @return a new {@code and} permission
* @since 1.4.0 * @since 1.4.0
*/ */
default @NonNull CommandPermission and(final @NonNull CommandPermission @NonNull ... other) { default @NonNull CommandPermission and(final @NonNull CommandPermission @NonNull... other) {
requireNonNull(other, "other"); requireNonNull(other, "other");
final Set<CommandPermission> permission = new HashSet<>(other.length + 1); final Set<CommandPermission> permission = new HashSet<>(other.length + 1);
permission.add(this); permission.add(this);

View file

@ -34,6 +34,9 @@ import org.checkerframework.checker.nullness.qual.NonNull;
*/ */
public final class FabricParserParameters { public final class FabricParserParameters {
private FabricParserParameters() {
}
/** /**
* Indicates that positions should be centered on the middle of blocks, i.e. x.5. * Indicates that positions should be centered on the middle of blocks, i.e. x.5.
* *