src/main/java/ru/shemplo/chat/neerc/network/TasksService.java
Method mergeTasks
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)