Skip to content

Commit

Permalink
Removed warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabri1983 committed Jan 10, 2020
1 parent 6981923 commit 36615c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ public class JobLogger {
private static boolean logWarning;
private static boolean logError;
private static boolean logToDatabase;
private boolean initialized;
private static Map dbParams;
private static Map<String, String> dbParams;
private static Logger logger;

public JobLogger(boolean logToFileParam, boolean logToConsoleParam, boolean logToDatabaseParam,
boolean logMessageParam, boolean logWarningParam, boolean logErrorParam, Map dbParamsMap) {
boolean logMessageParam, boolean logWarningParam, boolean logErrorParam, Map<String, String> dbParamsMap) {
logger = Logger.getLogger("MyLog");
logError = logErrorParam;
logMessage = logMessageParam;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package org.fabri1983.refactorexample.joblogger.enhanced.implementation;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

import org.fabri1983.refactorexample.joblogger.JobLogger;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;

import org.fabri1983.refactorexample.joblogger.category.AllLoggersCategoryTest;
import org.fabri1983.refactorexample.joblogger.category.EnhancedLoggerCategoryTest;
import org.fabri1983.refactorexample.joblogger.enhanced.contract.IEnhancedJobLogger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package org.fabri1983.refactorexample.joblogger.enhanced.implementation;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;

import java.io.File;
import java.util.Arrays;
import java.util.List;

import org.fabri1983.refactorexample.joblogger.JobLogger;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;

import org.fabri1983.refactorexample.joblogger.category.AllLoggersCategoryTest;
import org.fabri1983.refactorexample.joblogger.category.EnhancedLoggerCategoryTest;
import org.fabri1983.refactorexample.joblogger.enhanced.contract.IEnhancedJobLogger;
Expand Down

0 comments on commit 36615c4

Please sign in to comment.