Skip to content

Commit

Permalink
[ci] Do not use shadowing, use a new variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz authored and mathieucarbou committed Feb 13, 2023
1 parent 010b989 commit 392b51e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ private void executeForLicenseSet(final LicenseSet licenseSet, final Callback ca
}

final List<PropertiesProvider> propertiesProviders = new LinkedList<>();
int nThreads = getNumberOfExecutorThreads();
ExecutorService executorService = Executors.newFixedThreadPool(nThreads);
int threads = getNumberOfExecutorThreads();
ExecutorService executorService = Executors.newFixedThreadPool(threads);

try {

Expand Down Expand Up @@ -666,7 +666,7 @@ public Map<String, String> load(final Document document) {

CompletionService<?> completionService = new ExecutorCompletionService<>(executorService);
int count = 0;
debug("Number of execution threads: %s", nThreads);
debug("Number of execution threads: %s", threads);

for (final String file : listSelectedFiles(licenseSet)) {
completionService.submit(() -> {
Expand Down

0 comments on commit 392b51e

Please sign in to comment.