Skip to content

Commit

Permalink
Clean up some syntax errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Aug 18, 2023
1 parent 9c69374 commit c987e98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,19 @@ public static void main( final String[] args ) throws IOException
{
allItems.addAll( future.get() );
}
catch (InterruptedException | ExecutionException e)
catch (final InterruptedException | ExecutionException e)
{
LOG.error( "Failed to compute alignments: " + e );
e.printStackTrace();
return;
}
} );

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

Expand All @@ -164,7 +163,7 @@ public static void main( final String[] args ) throws IOException
allItems,
solver,
(r,z) -> z.set( r ),
() -> new AffineModel2D() );
AffineModel2D::new);

assembler.createAssembly();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public static void main(final String[] args) throws IOException {
cmdLineSetup.distributedSolve.maxIterationsGlobal,
cmdLineSetup.threadsGlobal);

final Assembler<ArrayList<AffineModel1D>, TranslationModel1D, ArrayList<AffineModel1D>, ZBlockFactory> assembler = new Assembler<>(allItems, solver);
final Assembler<ArrayList<AffineModel1D>, TranslationModel1D, ArrayList<AffineModel1D>, ZBlockFactory> assembler =
new Assembler<>(allItems, solver, (r, z) -> z.addAll(r), ArrayList::new);
assembler.createAssembly();
}

Expand Down

0 comments on commit c987e98

Please sign in to comment.