Skip to content

Commit

Permalink
Fix a few IDE warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Aug 28, 2023
1 parent 5e2d7fd commit fc5ee4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.util.function.Function;

import org.janelia.render.client.newsolver.blockfactories.XYBlockFactory;
import org.janelia.render.client.newsolver.blockfactories.ZBlockFactory;
import org.janelia.render.client.newsolver.blocksolveparameters.FIBSEMAlignmentParameters;
import org.janelia.render.client.newsolver.setup.AffineXYBlockSolverSetup;
import org.janelia.render.client.newsolver.setup.RenderSetup;
Expand Down Expand Up @@ -113,29 +112,21 @@ public static void main( final String[] args ) throws IOException

final ArrayList< BlockData<?, AffineModel2D, ?, XYBlockFactory> > allItems = new ArrayList<>();

try
{
try {
final ExecutorService taskExecutor = Executors.newFixedThreadPool(cmdLineSetup.distributedSolve.threadsGlobal);

taskExecutor.invokeAll( workers ).forEach( future ->
{
try
{
try {
allItems.addAll( future.get() );
}
catch (final InterruptedException | ExecutionException e)
{
LOG.error( "Failed to compute alignments: " + e );
e.printStackTrace();
} catch (final InterruptedException | ExecutionException e) {
LOG.error("Failed to compute alignments: ", e);
}
} );

taskExecutor.shutdown();
}
catch (final InterruptedException e)
{
LOG.error( "Failed to compute alignments: " + e );
e.printStackTrace();
} catch (final InterruptedException e) {
LOG.error("Failed to compute alignments: ", e);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
public class XYRangeParameters
implements Serializable {

// TODO: this seems to be a duplicate of LayerBoundsParameters
@Parameter(
names = "--minX",
description = "Minimum X value within layers to be processed")
Expand Down

0 comments on commit fc5ee4c

Please sign in to comment.