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
|
@Override
|
||||||
public void next(Package pkg) {
|
public void next(Package pkg) {
|
||||||
if (pkg.getState() instanceof ReceivedState) {
|
System.out.println("This package is already received by a client.");
|
||||||
System.out.println("This package is already received by a client.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
pkg.setState(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue