1001: Image gallery for muti-user cases

- More Codacy comments addressed.
This commit is contained in:
Raman 2018-07-26 09:09:20 -04:00
parent 9a5461fd6c
commit 36c638514f
2 changed files with 4 additions and 5 deletions

View File

@ -472,8 +472,8 @@ public final class ImageGalleryController {
try {
List<DataSource> dataSources = sleuthKitCase.getDataSources();
dataSources.forEach((ds) -> {
db.insertDataSource(ds.getId());
dataSources.forEach((dataSource) -> {
db.insertDataSource(dataSource.getId());
});
}
catch (TskCoreException ex) {

View File

@ -107,12 +107,11 @@ public final class ImageGalleryTopComponent extends TopComponent implements Expl
/**
* Returns the top component window.
*
* @return Image gallery top component window
* @return Image gallery top component window, null if it's not open
*/
@ThreadConfined(type = ThreadConfined.ThreadType.JFX)
public static TopComponent getTopComponent() {
final TopComponent topComponent = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
return topComponent;
return WindowManager.getDefault().findTopComponent(PREFERRED_ID);
}
public static void openTopComponent() {