package app.action;

import app.shipper.BasicShipper;

public class Drop extends BasicShipperAction {
	public Drop(BasicShipper target) {
		super(target);
	}

	@Override
	public void start() {
		System.out.println("Hey . " + target.getName() + " is droping package " + target.getPack() + " duuuuude");

		if(target.getPack() == null || target.getPack().isEmpty()) {
			throw new IllegalStateException("Can not drop a package. I DONT HAVE ONE");
		} else {
			target.setPack(null);
		}
		super.start();
	}
}
@@ -445,59 +445,98 @@
 %0A%09%09%7D
- else %7B%0A%09%09%09target.setPack(null);%0A%09%09%7D%0A%09%09super.start(
+%0A%09%09super.start();%0A%09%7D%0A%0A%09@Override%0A%09public void end() %7B%0A%09%09super.end();%0A%09%09target.setPack(null
 );%0A%09

Fix bug into Drop