Feavy/pokemon-discord-poc

View on GitHub
src/main/java/fr/reminy/pokemon_discord/game/http/GameHttpServer.java

Summary

Maintainability
A
1 hr
Test Coverage

Method handleRequest has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void handleRequest(HttpExchange exchange) throws IOException {
        Map<String, String> getParameters = queryToMap(exchange.getRequestURI().getQuery());

        if (!getParameters.containsKey("player")) {
            exchange.sendResponseHeaders(400, 0);

    There are no issues that match your filters.

    Category
    Status