Compare commits
No commits in common. "ff54aca2714ea1b569f9c2681cc7b55896da740b" and "5c3b31bb18ebb0e4b12d93e444b29ec58dce5180" have entirely different histories.
ff54aca271
...
5c3b31bb18
|
@ -35,6 +35,6 @@ public abstract class ValidatableStringRecord implements IValueObject {
|
|||
}
|
||||
|
||||
public static String getValueOrNull(Optional<? extends ValidatableStringRecord> s) {
|
||||
return s.isPresent() ? s.get().value() : null;
|
||||
return s.map(ValidatableStringRecord::value).orElse(null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue