Commit 9fabbe68 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

fixed CountDownLatch bug: due to precedence issues, the expression always evaluated to 1


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent 6edd175b
......@@ -261,7 +261,7 @@ public final class InternalMakefileGenerator {
executor = Executors.newCachedThreadPool(threadFactory);
}
final CountDownLatch latch = new CountDownLatch(ttcn3Modules.size() + ttcnppModules.size() + ttcn3IncludeFiles.size() + asn1modules.size() + userFiles.size() + otherFiles.size()
+ baseDirectories.size() + additionallyIncludedFolders.size() + etsName != null ? 1 : 0);
+ baseDirectories.size() + additionallyIncludedFolders.size() + (etsName != null ? 1 : 0));
for (final ModuleStruct module : ttcn3Modules) {
executor.execute(new Runnable() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment