Skip to content

Commit

Permalink
refactor : 코드 스멜 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
java-saeng committed Sep 11, 2023
1 parent 22ce601 commit 84c9d52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

import java.io.BufferedReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.coyote.request.Cookie;
import org.apache.coyote.request.HttpRequestLine;
import org.apache.coyote.request.QueryString;
import org.apache.coyote.request.RequestBody;

public class HttpRequestReader {

private HttpRequestReader() {
}

public static HttpRequestLine parseHttpRequestLine(final List<String> headers) {
final String requestLine = headers.get(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ private void initializeSession(final Manager sessionManager) {
}
},
() -> {
final Session session = new Session(UUID.randomUUID().toString());
sessionManager.add(session);
addSession(session);
final Session newSession = new Session(UUID.randomUUID().toString());
sessionManager.add(newSession);
addSession(newSession);
}
);
}
Expand Down

0 comments on commit 84c9d52

Please sign in to comment.