Compare commits

..

No commits in common. "ff54aca2714ea1b569f9c2681cc7b55896da740b" and "5c3b31bb18ebb0e4b12d93e444b29ec58dce5180" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}