diff --git a/MediatorPatternExamples/src/com/premaseem/mediator/atc/AtcMediator.java b/MediatorPatternExamples/src/com/premaseem/mediator/atc/AtcMediator.java index 0bf3566..29971a6 100644 --- a/MediatorPatternExamples/src/com/premaseem/mediator/atc/AtcMediator.java +++ b/MediatorPatternExamples/src/com/premaseem/mediator/atc/AtcMediator.java @@ -29,7 +29,7 @@ void landFlight(Flight flight) { flight.status = FlightStatus.LANDED; approachingFligh = null; } else if (flight.status.equals(FlightStatus.IN_Q)) { - System.out.printf("Grand permission before landing - WARNING to %s ", flight.name); + System.out.printf("Added for Training - Grand permission before landing - WARNING to %s ", flight.name); } else { System.out.printf("Flight %s is already grounded ", flight.name); } diff --git a/MediatorPatternExamples/src/com/premaseem/mediator/atc/Flight.java b/MediatorPatternExamples/src/com/premaseem/mediator/atc/Flight.java index b5f765c..facd4b7 100644 --- a/MediatorPatternExamples/src/com/premaseem/mediator/atc/Flight.java +++ b/MediatorPatternExamples/src/com/premaseem/mediator/atc/Flight.java @@ -3,11 +3,11 @@ import com.premaseem.mediator.atc.AtcMediator.FlightStatus; public class Flight { - + FlightStatus status; AtcMediator atcMediator=null; public String name; - + public Flight(AtcMediator atcMediator, String flightName) { status = FlightStatus.IN_Q; name = flightName; @@ -16,8 +16,10 @@ public Flight(AtcMediator atcMediator, String flightName) { void grantLandingPermission(){ atcMediator.grantLandingPermission(this); + System.out.println("just added this line for training") + System.out.println("made changes to address code review comment") } - + void landFlight(){ atcMediator.landFlight(this); }