Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit c78a576

Browse files
committed
iluwatar#1842 Replaced prints with LOGGER
1 parent 13faa8a commit c78a576

File tree

1 file changed

+10
-8
lines changed
  • currying/src/main/java/com/iluwatar/currying

1 file changed

+10
-8
lines changed

currying/src/main/java/com/iluwatar/currying/App.java

+10-8
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
package com.iluwatar.currying;
2626

2727
import java.time.LocalDate;
28+
import lombok.extern.slf4j.Slf4j;
2829

2930
/**
3031
* This is a Javadoc comment to pass the style check.
3132
*/
33+
@Slf4j
3234
public class App {
3335
/**
3436
* This is a Javadoc comment to pass the style check.
@@ -62,15 +64,15 @@ public static void main(String[] args) {
6264
.withTitle("Foundation")
6365
.withPublicationDate(LocalDate.of(1942, 5, 1));
6466

65-
System.out.println("Stephen King Books:");
66-
System.out.println(shining);
67-
System.out.println(darkTower);
67+
LOGGER.info("Stephen King Books:");
68+
LOGGER.info(shining.toString());
69+
LOGGER.info(darkTower.toString());
6870

69-
System.out.println("J.K. Rowling Books:");
70-
System.out.println(chamberOfSecrets);
71+
LOGGER.info("J.K. Rowling Books:");
72+
LOGGER.info(chamberOfSecrets.toString());
7173

72-
System.out.println("Sci-fi Books:");
73-
System.out.println(dune);
74-
System.out.println(foundation);
74+
LOGGER.info("Sci-fi Books:");
75+
LOGGER.info(dune.toString());
76+
LOGGER.info(foundation.toString());
7577
}
7678
}

0 commit comments

Comments
 (0)