Fix more incorrect array nullability annotations (#11836)
This commit is contained in:
@@ -150,7 +150,7 @@ public class ChatPaginator {
|
||||
private int pageNumber;
|
||||
private int totalPages;
|
||||
|
||||
public ChatPage(@NotNull String[] lines, int pageNumber, int totalPages) {
|
||||
public ChatPage(@NotNull String @NotNull [] lines, int pageNumber, int totalPages) {
|
||||
this.lines = lines;
|
||||
this.pageNumber = pageNumber;
|
||||
this.totalPages = totalPages;
|
||||
@@ -165,7 +165,7 @@ public class ChatPaginator {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String[] getLines() {
|
||||
public String @NotNull [] getLines() {
|
||||
return lines;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public abstract class OctaveGenerator {
|
||||
protected double yScale = 1;
|
||||
protected double zScale = 1;
|
||||
|
||||
protected OctaveGenerator(@NotNull NoiseGenerator[] octaves) {
|
||||
protected OctaveGenerator(@NotNull NoiseGenerator @NotNull [] octaves) {
|
||||
this.octaves = octaves;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ public abstract class OctaveGenerator {
|
||||
* @return Clone of the individual octaves
|
||||
*/
|
||||
@NotNull
|
||||
public NoiseGenerator[] getOctaves() {
|
||||
public NoiseGenerator @NotNull [] getOctaves() {
|
||||
return octaves.clone();
|
||||
}
|
||||
|
||||
|
||||
@@ -78,15 +78,15 @@ public class SimplexNoiseGenerator extends PerlinNoiseGenerator {
|
||||
offsetW = rand.nextDouble() * 256;
|
||||
}
|
||||
|
||||
protected static double dot(@NotNull int[] g, double x, double y) {
|
||||
protected static double dot(int @NotNull [] g, double x, double y) {
|
||||
return g[0] * x + g[1] * y;
|
||||
}
|
||||
|
||||
protected static double dot(@NotNull int[] g, double x, double y, double z) {
|
||||
protected static double dot(int @NotNull [] g, double x, double y, double z) {
|
||||
return g[0] * x + g[1] * y + g[2] * z;
|
||||
}
|
||||
|
||||
protected static double dot(@NotNull int[] g, double x, double y, double z, double w) {
|
||||
protected static double dot(int @NotNull [] g, double x, double y, double z, double w) {
|
||||
return g[0] * x + g[1] * y + g[2] * z + g[3] * w;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user