removed redundant import
This commit is contained in:
parent
b0e380f094
commit
3e78007c44
1 changed files with 2 additions and 3 deletions
|
@ -11,7 +11,6 @@ import javax.servlet.http.HttpServlet;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.time.Clock;
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.time.temporal.ChronoUnit;
|
import java.time.temporal.ChronoUnit;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@ -24,13 +23,13 @@ public class AreaCheckServlet extends HttpServlet {
|
||||||
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||||
long executionTime = System.nanoTime();
|
long executionTime = System.nanoTime();
|
||||||
int timezoneOffset;
|
int timezoneOffset;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Optional<String> timezoneOffsetCookie = readCookie(req, "timezoneOffset");
|
Optional<String> timezoneOffsetCookie = readCookie(req, "timezoneOffset");
|
||||||
timezoneOffset = timezoneOffsetCookie.map(Integer::parseInt).orElse(0);
|
timezoneOffset = timezoneOffsetCookie.map(Integer::parseInt).orElse(0);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
timezoneOffset = 0;
|
timezoneOffset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
String xParam = req.getParameter("xValue"), yParam = req.getParameter("yValue"),
|
String xParam = req.getParameter("xValue"), yParam = req.getParameter("yValue"),
|
||||||
rParam = req.getParameter("rValue");
|
rParam = req.getParameter("rValue");
|
||||||
if (xParam == null || yParam == null || rParam == null) {
|
if (xParam == null || yParam == null || rParam == null) {
|
||||||
|
|
Loading…
Reference in a new issue