removed redundant import

This commit is contained in:
Egor 2023-02-18 15:04:18 +03:00
parent b0e380f094
commit 3e78007c44

View file

@ -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) {