Skip to content

Commit

Permalink
Fixed checkstyle mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
VolodymyrSkvira committed Aug 7, 2023
1 parent b7949df commit 07a6c25
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/core/basesyntax/Excavator.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.basesyntax;

public class Excavator extends Machine{
public class Excavator extends Machine {
@Override
public void doWork() {
System.out.println("Excavator started working");
Expand Down
1 change: 1 addition & 0 deletions src/main/java/core/basesyntax/Machine.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

public abstract class Machine {
public abstract void doWork();

public abstract void stopWork();
}
2 changes: 1 addition & 1 deletion src/main/java/core/basesyntax/MainApp.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package core.basesyntax;

public class MainApp {
public void doWork () {
public void doWork() {
Machine[] machines = {new Truck(), new Bulldozer(), new Excavator()};
for (int i = 0; i < machines.length; i++) {
machines[i].doWork();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/basesyntax/Truck.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.basesyntax;

public class Truck extends Machine{
public class Truck extends Machine {
@Override
public void doWork() {
System.out.println("Truck started working");
Expand Down

0 comments on commit 07a6c25

Please sign in to comment.