-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Волков Никита, ИТМО DWS, Stage 1 #17
Conversation
|
||
public class HttpServerImpl extends HttpServer { | ||
|
||
private final ReferenceDao dao; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут лучше определять интерфейсом
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправил
if (isIdCorrect(id)) { | ||
return new Response(Response.BAD_REQUEST, Response.EMPTY); | ||
} | ||
MemorySegment key = idToMemorySegment(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
одно поле получается через вызов метода, а второй прямо тут через MemorySegment, для чистоты кода лучше делать одинаково
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправил
} | ||
|
||
@Override | ||
public CompletableFuture<Void> stop() throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
старт/стоп лучше синхронизированными сделать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправил
* init commit * data research result * result * refactoring --------- Co-authored-by: atimofeyev <[email protected]>
* init commit * data research result * result * refactoring --------- Co-authored-by: atimofeyev <[email protected]>
No description provided.