Skip to content

Commit

Permalink
clean: Remove reported code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed May 1, 2020
1 parent 6ab46dc commit 335491c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public class ExecMessage {
@Getter
public enum StandardStream {
STDIN(0), STDOUT(1), STDERR(2);
private final int standardStream;
private final int standardStreamCode;
public static StandardStream fromByte(int byteCode) {
return Stream.of(values()).filter(ss -> ss.getStandardStream() == byteCode).findFirst()
return Stream.of(values()).filter(ss -> ss.getStandardStreamCode() == byteCode).findFirst()
.orElse(STDOUT);
}
}
Expand Down

0 comments on commit 335491c

Please sign in to comment.