Skip to content

Commit

Permalink
Fix some IDE warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Feb 9, 2024
1 parent 64b7a86 commit 032d3c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions mpicbg/src/main/java/mpicbg/models/TileConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.util.ListIterator;
import java.util.Set;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadPoolExecutor;

Expand Down Expand Up @@ -341,7 +340,7 @@ public void optimizeSilentlyConcurrent(
final double maxAllowedError,
final int maxIterations,
final int maxPlateauwidth,
final double damp ) throws NotEnoughDataPointsException, IllDefinedDataPointsException, InterruptedException, ExecutionException
final double damp ) throws InterruptedException, ExecutionException
{
TileUtil.optimizeConcurrently(observer, maxAllowedError, maxIterations, maxPlateauwidth, damp,
this, tiles, fixedTiles, Runtime.getRuntime().availableProcessors());
Expand Down
2 changes: 1 addition & 1 deletion mpicbg/src/main/java/mpicbg/models/TileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static public void optimizeConcurrently(
int d = maxPlateauwidth;
while (!proceed && d >= 1) {
try {
proceed |= Math.abs(observer.getWideSlope(d)) > 0.0001;
proceed = Math.abs(observer.getWideSlope(d)) > 0.0001;
} catch (final Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 032d3c8

Please sign in to comment.