Skip to content

Commit

Permalink
DMP-2949 reverting not needed change
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-paniccia committed Apr 25, 2024
1 parent 56aa5c1 commit 4a4386e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import static java.util.Arrays.stream;

@Getter
@RequiredArgsConstructor
@Slf4j
public enum DarNotifyEventResult {

OK(0, "OK"),
Expand All @@ -24,10 +22,7 @@ public enum DarNotifyEventResult {
public static DarNotifyEventResult findByResult(int result) {
return stream(DarNotifyEventResult.values())
.filter(r -> r.getResult() == result)
.findFirst().orElseGet(() -> {
log.warn("unknown DarNotifyEventResult {}", result);
return null;
});
.findFirst().orElse(null);
}

}

0 comments on commit 4a4386e

Please sign in to comment.