Sonar Fixes (11) (#2223)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-01-23 17:56:58 +02:00
committed by GitHub
parent e608996e43
commit 1104256c4c
5 changed files with 136 additions and 123 deletions

View File

@@ -57,8 +57,8 @@ public interface DistributionSetCreate {
* @param type for {@link DistributionSet#getType()}
* @return updated builder instance
*/
default DistributionSetCreate type(final DistributionSetType type) {
return type(Optional.ofNullable(type).map(DistributionSetType::getKey).orElse(null));
default DistributionSetCreate type(@NotNull final DistributionSetType type) {
return type(type.getKey());
}
/**