Skip to content

Commit

Permalink
Merge pull request #27694 from rdebusscher/validate_ConfiguratorBase_…
Browse files Browse the repository at this point in the history
…param
  • Loading branch information
gastaldi authored Sep 9, 2022
2 parents 463342c + 322e1ba commit 382511f
Showing 1 changed file with 19 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.ClassInfo;

Expand Down Expand Up @@ -31,7 +32,7 @@ public THIS param(String name, boolean value) {
}

public THIS param(String name, boolean[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

Expand All @@ -41,7 +42,7 @@ public THIS param(String name, byte value) {
}

public THIS param(String name, byte[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

Expand All @@ -51,7 +52,7 @@ public THIS param(String name, short value) {
}

public THIS param(String name, short[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

Expand All @@ -61,7 +62,7 @@ public THIS param(String name, int value) {
}

public THIS param(String name, int[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

Expand All @@ -71,7 +72,7 @@ public THIS param(String name, long value) {
}

public THIS param(String name, long[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

Expand All @@ -81,7 +82,7 @@ public THIS param(String name, float value) {
}

public THIS param(String name, float[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

Expand All @@ -91,7 +92,7 @@ public THIS param(String name, double value) {
}

public THIS param(String name, double[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

Expand All @@ -101,57 +102,57 @@ public THIS param(String name, char value) {
}

public THIS param(String name, char[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, String value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, String[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, Enum<?> value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, Enum<?>[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, Class<?> value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, Class<?>[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, ClassInfo value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, ClassInfo[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, AnnotationInstance value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

public THIS param(String name, AnnotationInstance[] value) {
params.put(name, value);
params.put(name, Objects.requireNonNull(value));
return self();
}

Expand Down

0 comments on commit 382511f

Please sign in to comment.