kitdim/java-project

View on GitHub
app/src/main/java/hexlet/code/controller/UrlCheckController.java

Summary

Maintainability
A
1 hr
Test Coverage
B
85%

Method createCheck has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void createCheck(Context ctx) throws SQLException {
        Long urlId = ctx.pathParamAsClass("id", Long.class).get();
        Url url = UrlsRepository.find(urlId)
                .orElseThrow(() -> new NotFoundResponse("Entity with id = " + urlId + " not found"));
        try {
Severity: Minor
Found in app/src/main/java/hexlet/code/controller/UrlCheckController.java - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status