Shemplo/Neerc-chat-client

View on GitHub
src/main/java/ru/shemplo/chat/neerc/network/TasksService.java

Summary

Maintainability
A
1 hr
Test Coverage

Method mergeTasks has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public synchronized void mergeTasks (Collection <TaskEntity> tasks) {        
        boolean numberOfTasksChanged = this.tasks.size () != tasks.size ();
        List <String> keys = new ArrayList <> (this.tasks.keySet ());
        Set <String> keep = new HashSet <> (tasks.stream ()
                          . map (TaskEntity::getId)
Severity: Minor
Found in src/main/java/ru/shemplo/chat/neerc/network/TasksService.java - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status