Skip to content

Commit

Permalink
fixed checkstyle errors v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Merrquer committed Jan 18, 2025
1 parent 54b0374 commit 0abee7a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
17 changes: 8 additions & 9 deletions src/main/java/core/basesyntax/HelloWorld.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package core.basesyntax;

import core.basesyntax.Model.Cat;
import core.basesyntax.Model.Dog;

import core.basesyntax.model.Cat;
import core.basesyntax.model.Dog;
import java.time.LocalDate;

public class HelloWorld {
private String a;
private String peopleGraatings;
private int age;
private int variable;
private int size;


public static void main(String[] args) {

Cat cat = new Cat();
Dog dog = new Dog();
}
Expand All @@ -30,16 +29,16 @@ private String getFromOneToTen() {

private void sayHello(String hello) {
System.out.println("Hello, Mate! I am happy to see you! "
+ "This class looks weird! Your task is to fix the checkstyle in this file."
+ " Your goal is to run `mvn clean package` and receive `BUILD SUCCESS` message");
+ "This class looks weird! Your task is to fix the checkstyle in this file."
+ " Your goal is to run `mvn clean package` and receive `BUILD SUCCESS` message");
System.out.println(hello);
}

private void initializeVariables() {
a = "Hello mates!";
peopleGraatings = "Hello mates!";
age = 25;
size = 42;
System.out.println(a);
System.out.println(peopleGraatings);
variable = LocalDate.now().getYear();
System.out.println("It is " + variable + "year");
System.out.println("I'm " + age);
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/core/basesyntax/model/Cat.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package core.basesyntax.Model;
package core.basesyntax.model;

public class Cat {
private int age;
Expand All @@ -7,10 +7,10 @@ public class Cat {

@Override
public String toString() {
return "Cat{" +
"age=" + age +
", name='" + name + '\'' +
", ownerName='" + ownerName + '\'' +
'}';
return "Cat{"
+ "age=" + age
+ ", name='" + name + '\''
+ ", ownerName='" + ownerName + '\''
+ '}';
}
}
2 changes: 1 addition & 1 deletion src/main/java/core/basesyntax/model/Dog.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package core.basesyntax.Model;
package core.basesyntax.model;

public class Dog {
}

0 comments on commit 0abee7a

Please sign in to comment.