Use switch expressions where appropriate
See gh-31527
This commit is contained in:
committed by
Andy Wilkinson
parent
836b08f49d
commit
458f989cf3
@@ -54,12 +54,8 @@ public class LogUpdateEvent extends UpdateEvent {
|
||||
|
||||
public void print() {
|
||||
switch (this.streamType) {
|
||||
case STD_OUT:
|
||||
System.out.println(this);
|
||||
return;
|
||||
case STD_ERR:
|
||||
System.err.println(this);
|
||||
return;
|
||||
case STD_OUT -> System.out.println(this);
|
||||
case STD_ERR -> System.err.println(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user