Commit 05d0ec1f authored by pysaumont's avatar pysaumont
Browse files

ACr3

parent 479e267c
......@@ -508,7 +508,7 @@ public abstract class Result<T> implements Serializable {
public static <T> Result<T> of(final T value) {
return value != null
? success(value)
: empty();
: Result.failure("Null value");
}
public static <T> Result<T> of(final T value, final String message) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment