Given an interface:
public interface Logger {
void log(String message);
}
Rather than usage:
public void doJob(Logger logger) {
if (logger != null) {
logger.log("[doJob]:Step 1");
}
// ...
if (logger != null) {
logger.log("[doJob]:Step 2&q...