BAEL-1997 clean up in ReceivedState

This commit is contained in:
Denis 2018-08-10 23:28:16 +02:00
parent 7c422c70ad
commit 1a1ea1560d
1 changed files with 1 additions and 5 deletions

View File

@ -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