Removed findbugs jsr

This commit is contained in:
Nathan Adams 2017-06-21 14:25:36 +02:00
parent e12ab0b6d8
commit 400657b472
8 changed files with 1 additions and 27 deletions

View file

@ -16,7 +16,6 @@ repositories {
}
dependencies {
api 'com.google.code.findbugs:jsr305:2.0.1'
api 'com.google.guava:guava:21.0'
api 'org.apache.commons:commons-lang3:3.5'
testImplementation 'junit:junit-dep:4.10'

View file

@ -13,7 +13,6 @@ import com.mojang.brigadier.tree.CommandNode;
import com.mojang.brigadier.tree.LiteralCommandNode;
import com.mojang.brigadier.tree.RootCommandNode;
import javax.annotation.Nullable;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
@ -21,7 +20,7 @@ import java.util.List;
public class CommandDispatcher<T> {
private static final Predicate<CommandNode> HAS_COMMAND = new Predicate<CommandNode>() {
@Override
public boolean apply(@Nullable CommandNode input) {
public boolean apply(CommandNode input) {
return input != null && (input.getCommand() != null || Iterables.any(input.getChildren(), HAS_COMMAND));
}
};

View file

@ -1,4 +0,0 @@
@ParametersAreNonnullByDefault
package com.mojang.brigadier.arguments;
import javax.annotation.ParametersAreNonnullByDefault;

View file

@ -1,4 +0,0 @@
@ParametersAreNonnullByDefault
package com.mojang.brigadier.builder;
import javax.annotation.ParametersAreNonnullByDefault;

View file

@ -1,4 +0,0 @@
@ParametersAreNonnullByDefault
package com.mojang.brigadier.context;
import javax.annotation.ParametersAreNonnullByDefault;

View file

@ -1,4 +0,0 @@
@ParametersAreNonnullByDefault
package com.mojang.brigadier.exceptions;
import javax.annotation.ParametersAreNonnullByDefault;

View file

@ -1,4 +0,0 @@
@ParametersAreNonnullByDefault
package com.mojang.brigadier;
import javax.annotation.ParametersAreNonnullByDefault;

View file

@ -1,4 +0,0 @@
@ParametersAreNonnullByDefault
package com.mojang.brigadier.tree;
import javax.annotation.ParametersAreNonnullByDefault;