Skip to content

Commit

Permalink
Fixed Javadoc comments and interrupted exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ppouchin authored Mar 28, 2022
1 parent b928ca2 commit 2826fb2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/fr/igred/ij/plugin/OMEROMacroExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -967,12 +967,13 @@ public int saveROIs(ImagePlus imp, long id, String property) {
return result;
}


/**
* removes the ROIs of the image in OMERO.
* Removes the ROIs from an image in OMERO.
*
* @param id The image ID on OMERO.
* @param id The image ID on OMERO.
*
* @return The 1 if at least one ROI has been deleted
* @return The number of ROIs that were deleted.
*/
public int removeROIs(long id) {

Expand All @@ -984,8 +985,11 @@ public int removeROIs(long id) {
client.delete(roi);
removed++;
}
} catch (ServiceException | AccessException | ExecutionException | OMEROServerError | InterruptedException e) {
} catch (ServiceException | AccessException | ExecutionException | OMEROServerError e) {
IJ.error("Could not remove image ROIs: " + e.getMessage());
} catch (InterruptedException e) {
IJ.error("Could not remove image ROIs: " + e.getMessage());
Thread.currentThread().interrupt();
}
return removed;
}
Expand Down

0 comments on commit 2826fb2

Please sign in to comment.