Skip to content

project-servlet#25

Open
dosstacy wants to merge 29 commits intovasylmalik:masterfrom
dosstacy:master
Open

project-servlet#25
dosstacy wants to merge 29 commits intovasylmalik:masterfrom
dosstacy:master

Conversation

@dosstacy
Copy link

@dosstacy dosstacy commented Jul 1, 2024

No description provided.


for (List<Integer> winPossibility : winPossibilities) {
if (field.get(winPossibility.get(0)) != Sign.EMPTY
&& field.get(winPossibility.get(0)) == field.get(winPossibility.get(1))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

magic numbers

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
LOGGER.info("Handling GET request for /start");
HttpSession currentSession = req.getSession(true); //існує - поверне поточну сесію; не існує - створить нову

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use comments

//запит і відповідь будуть надсилатися на index.jsp
}catch (ServletException | IOException e) {
LOGGER.error("An exception occurred while forwarding request to /index.jsp", e);
throw e;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't re-throw exception, just log error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants