Skip to content

Commit

Permalink
fix must override a superclass method (iluwatar#919)
Browse files Browse the repository at this point in the history
* fix must override a superclass method

* fix must override a superclass method
  • Loading branch information
anancds authored and iluwatar committed Sep 7, 2019
1 parent 35dc25d commit c653edf
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@
*/
public class ElfKingdomFactory implements KingdomFactory {

@Override
public Castle createCastle() {
return new ElfCastle();
}

@Override
public King createKing() {
return new ElfKing();
}

@Override
public Army createArmy() {
return new ElfArmy();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@
*/
public class OrcKingdomFactory implements KingdomFactory {

@Override
public Castle createCastle() {
return new OrcCastle();
}

@Override
public King createKing() {
return new OrcKing();
}

@Override
public Army createArmy() {
return new OrcArmy();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ public class ConfigureForDosVisitor implements AllModemVisitor {

private static final Logger LOGGER = LoggerFactory.getLogger(ConfigureForDosVisitor.class);

@Override
public void visit(Hayes hayes) {
LOGGER.info(hayes + " used with Dos configurator.");
}

@Override
public void visit(Zoom zoom) {
LOGGER.info(zoom + " used with Dos configurator.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class ConfigureForUnixVisitor implements ZoomVisitor {

private static final Logger LOGGER = LoggerFactory.getLogger(ConfigureForUnixVisitor.class);

@Override
public void visit(Zoom zoom) {
LOGGER.info(zoom + " used with Unix configurator.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*/
public class ElfBlacksmith implements Blacksmith {

@Override
public Weapon manufactureWeapon(WeaponType weaponType) {
return new ElfWeapon(weaponType);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*/
public class OrcBlacksmith implements Blacksmith {

@Override
public Weapon manufactureWeapon(WeaponType weaponType) {
return new OrcWeapon(weaponType);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public ThrottleTimerImpl(int throttlePeriod, CallsCount callsCount) {
* A timer is initiated with this method. The timer runs every second and resets the
* counter.
*/
@Override
public void start() {
new Timer(true).schedule(new TimerTask() {
@Override
Expand Down

0 comments on commit c653edf

Please sign in to comment.