ItEr33S08ValidacionEProbasFuncionaisItEr32S09: Not catching the exception. The catch was being user for debug purposes
This commit is contained in:
parent
dc15e212e2
commit
859a3d8cb4
1 changed files with 2 additions and 13 deletions
|
|
@ -36,8 +36,6 @@ import javax.servlet.http.HttpServletRequest;
|
|||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* Servlet that allows to register custom responses. It must be declared at
|
||||
|
|
@ -48,8 +46,6 @@ public class CallbackServlet extends HttpServlet {
|
|||
|
||||
private static final String MAPPING = "/callback/";
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(CallbackServlet.class);
|
||||
|
||||
private static final long CLEANING_PERIOD_MILLIS = 1000 * 60 * 10; // ten
|
||||
// minutes
|
||||
|
||||
|
|
@ -141,15 +137,8 @@ public class CallbackServlet extends HttpServlet {
|
|||
}
|
||||
|
||||
private void scheduleTimer() {
|
||||
try {
|
||||
cleaningTimer.schedule(cleaningTask(), CLEANING_PERIOD_MILLIS,
|
||||
CLEANING_PERIOD_MILLIS);
|
||||
} catch (Throwable e) {
|
||||
LOG
|
||||
.error(
|
||||
"can't start cleaning timer. A memory leak will be caused!",
|
||||
e);
|
||||
}
|
||||
cleaningTimer.schedule(cleaningTask(), CLEANING_PERIOD_MILLIS,
|
||||
CLEANING_PERIOD_MILLIS);
|
||||
}
|
||||
|
||||
private TimerTask cleaningTask() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue