File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
abstract-factory/src/main/java/me/zbl/abstractFactory Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ public static void main(String[] args) {
4848
4949 app .createTeam (new YoungTeamFactory ());
5050 LOGGER .info ("正在创建一支年轻的队伍..." );
51- LOGGER .info (app .getmCaptain ().getDescription ());
52- LOGGER .info (app .getmShip ().getDescription ());
53- LOGGER .info (app .getmSailor ().getDescription ());
51+ LOGGER .info ("-->" + app .getmCaptain ().getDescription ());
52+ LOGGER .info ("-->" + app .getmShip ().getDescription ());
53+ LOGGER .info ("-->" + app .getmSailor ().getDescription ());
5454
5555 app .createTeam (new PermanentTeamFactory ());
5656 LOGGER .info ("正在创建一支久经考验的队伍..." );
57- LOGGER .info (app .getmCaptain ().getDescription ());
58- LOGGER .info (app .getmShip ().getDescription ());
59- LOGGER .info (app .getmSailor ().getDescription ());
57+ LOGGER .info ("-->" + app .getmCaptain ().getDescription ());
58+ LOGGER .info ("-->" + app .getmShip ().getDescription ());
59+ LOGGER .info ("-->" + app .getmSailor ().getDescription ());
6060 }
6161
6262 public Ship getmShip () {
You can’t perform that action at this time.
0 commit comments