#502 Replaced usages of System.out with logger.
This commit is contained in:
@ -22,6 +22,9 @@
|
||||
*/
|
||||
package com.iluwatar.lazy.loading;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
@ -32,10 +35,12 @@ import java.util.function.Supplier;
|
||||
*/
|
||||
public class Java8Holder {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(Java8Holder.class);
|
||||
|
||||
private Supplier<Heavy> heavy = () -> createAndCacheHeavy();
|
||||
|
||||
public Java8Holder() {
|
||||
System.out.println("Java8Holder created");
|
||||
LOGGER.info("Java8Holder created");
|
||||
}
|
||||
|
||||
public Heavy getHeavy() {
|
||||
|
Reference in New Issue
Block a user