BAEL-1997 clean up in ReceivedState
This commit is contained in:
parent
7c422c70ad
commit
1a1ea1560d
|
@ -4,11 +4,7 @@ public class ReceivedState implements PackageState {
|
|||
|
||||
@Override
|
||||
public void next(Package pkg) {
|
||||
if (pkg.getState() instanceof ReceivedState) {
|
||||
System.out.println("This package is already received by a client.");
|
||||
return;
|
||||
}
|
||||
pkg.setState(this);
|
||||
System.out.println("This package is already received by a client.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue