Loading de.ugoe.cs.swe.T3Q/src/de/ugoe/cs/swe/T3Q/TTCN3ResourceProvider.java +3 −2 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ public class TTCN3ResourceProvider { private ArrayList<String> paths; private LoggingInterface logger; private QualityCheckProfile activeProfile; private final int cores = Runtime.getRuntime().availableProcessors(); @Inject private IQualifiedNameProvider qualifiedNameProvider; Loading @@ -70,7 +71,7 @@ public class TTCN3ResourceProvider { stopwatch.start(); ExecutorService pool = Executors.newFixedThreadPool(4); ExecutorService pool = Executors.newFixedThreadPool(cores); ArrayList<FileParser> parser = new ArrayList<FileParser>(); for (String path : paths) { Loading Loading @@ -125,7 +126,7 @@ public class TTCN3ResourceProvider { public void analyzeResources() { Stopwatch watchAnalyzing = Stopwatch.createStarted(); ExecutorService pool = Executors.newFixedThreadPool(4); ExecutorService pool = Executors.newFixedThreadPool(cores); // Check if resource is a ignored one and if so, do not analyze it. Pattern pattern = Pattern.compile(activeProfile.getIgnoredResourceRegExp()); Loading Loading
de.ugoe.cs.swe.T3Q/src/de/ugoe/cs/swe/T3Q/TTCN3ResourceProvider.java +3 −2 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ public class TTCN3ResourceProvider { private ArrayList<String> paths; private LoggingInterface logger; private QualityCheckProfile activeProfile; private final int cores = Runtime.getRuntime().availableProcessors(); @Inject private IQualifiedNameProvider qualifiedNameProvider; Loading @@ -70,7 +71,7 @@ public class TTCN3ResourceProvider { stopwatch.start(); ExecutorService pool = Executors.newFixedThreadPool(4); ExecutorService pool = Executors.newFixedThreadPool(cores); ArrayList<FileParser> parser = new ArrayList<FileParser>(); for (String path : paths) { Loading Loading @@ -125,7 +126,7 @@ public class TTCN3ResourceProvider { public void analyzeResources() { Stopwatch watchAnalyzing = Stopwatch.createStarted(); ExecutorService pool = Executors.newFixedThreadPool(4); ExecutorService pool = Executors.newFixedThreadPool(cores); // Check if resource is a ignored one and if so, do not analyze it. Pattern pattern = Pattern.compile(activeProfile.getIgnoredResourceRegExp()); Loading