Skip to content

Commit 4bbcbf1

Browse files
authored
Merge pull request #2 from premaseem/gitTraining
first changes on MVC Ready for production release.
2 parents 6fab794 + 4588f24 commit 4bbcbf1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

MediatorPatternExamples/src/com/premaseem/mediator/atc/AtcMediator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void landFlight(Flight flight) {
2929
flight.status = FlightStatus.LANDED;
3030
approachingFligh = null;
3131
} else if (flight.status.equals(FlightStatus.IN_Q)) {
32-
System.out.printf("Grand permission before landing - WARNING to %s ", flight.name);
32+
System.out.printf("Added for Training - Grand permission before landing - WARNING to %s ", flight.name);
3333
} else {
3434
System.out.printf("Flight %s is already grounded ", flight.name);
3535
}

MediatorPatternExamples/src/com/premaseem/mediator/atc/Flight.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import com.premaseem.mediator.atc.AtcMediator.FlightStatus;
44

55
public class Flight {
6-
6+
77
FlightStatus status;
88
AtcMediator atcMediator=null;
99
public String name;
10-
10+
1111
public Flight(AtcMediator atcMediator, String flightName) {
1212
status = FlightStatus.IN_Q;
1313
name = flightName;
@@ -16,8 +16,10 @@ public Flight(AtcMediator atcMediator, String flightName) {
1616

1717
void grantLandingPermission(){
1818
atcMediator.grantLandingPermission(this);
19+
System.out.println("just added this line for training")
20+
System.out.println("made changes to address code review comment")
1921
}
20-
22+
2123
void landFlight(){
2224
atcMediator.landFlight(this);
2325
}

0 commit comments

Comments
 (0)