|
|
@ -13,8 +13,14 @@ import com.fr.file.filetree.FileNode; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.concurrent.*; |
|
|
|
import java.util.HashSet; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
|
|
|
|
import java.util.concurrent.Executors; |
|
|
|
|
|
|
|
import java.util.concurrent.ExecutorService; |
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
@ -82,7 +88,7 @@ public class TemplateTreeSearcher implements TreeSearcher { |
|
|
|
* |
|
|
|
* |
|
|
|
* @param fileNodes |
|
|
|
* @param fileNodes |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void addToNotCalculatedSets(List<FileNode> fileNodes) { |
|
|
|
public synchronized void addToNotCalculatedSets(List<FileNode> fileNodes) { |
|
|
|
synchronized (lock) { |
|
|
|
synchronized (lock) { |
|
|
|
Map<String, FileNode> chileMap = fileNodes.stream().collect(Collectors.toMap(FileNode::getEnvPath, treeNode -> treeNode)); |
|
|
|
Map<String, FileNode> chileMap = fileNodes.stream().collect(Collectors.toMap(FileNode::getEnvPath, treeNode -> treeNode)); |
|
|
|
notCalculatedSets.addAll(chileMap.keySet()); |
|
|
|
notCalculatedSets.addAll(chileMap.keySet()); |
|
|
|