Use nonNull rather than !isNull

Dieser Commit ist enthalten in:
Matthew Miller 2019-02-16 19:58:06 +10:00
Ursprung db1315e043
Commit 3683a0438a

Datei anzeigen

@ -31,7 +31,6 @@ import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import java.util.Set; import java.util.Set;
import java.util.function.IntFunction;
/** /**
* Represents WorldEdit's configuration. * Represents WorldEdit's configuration.
@ -141,7 +140,7 @@ public abstract class LocalConfiguration {
// ores and stuff // ores and stuff
BlockTypes.BEDROCK BlockTypes.BEDROCK
); );
return blockTypes.stream().filter(type -> !Objects.isNull(type)).map(BlockType::getId).toArray(String[]::new); return blockTypes.stream().filter(Objects::nonNull).map(BlockType::getId).toArray(String[]::new);
} }
/** /**