Codeacy fixes.

This commit is contained in:
Andrew Ziehl 2018-06-14 20:49:30 -07:00
parent d376fbaeb0
commit a51a2da70a
2 changed files with 5 additions and 1 deletions

View File

@ -208,7 +208,7 @@ public final class CommonFilesPanel extends javax.swing.JPanel {
@Override @Override
@SuppressWarnings({"BoxedValueEquality", "NumberEquality"}) @SuppressWarnings({"BoxedValueEquality", "NumberEquality"})
protected CommonFilesMetadata doInBackground() throws TskCoreException, NoCurrentCaseException, SQLException, EamDbException, Exception { protected CommonFilesMetadata doInBackground() throws TskCoreException, NoCurrentCaseException, SQLException, EamDbException {
progress = ProgressHandle.createHandle(Bundle.CommonFilesPanel_search_done_searchProgress1()); progress = ProgressHandle.createHandle(Bundle.CommonFilesPanel_search_done_searchProgress1());
progress.start(); progress.start();
progress.switchToIndeterminate(); progress.switchToIndeterminate();

View File

@ -62,6 +62,10 @@ public class Md5Node extends DisplayableItemNode {
this.setDisplayName(this.md5Hash); this.setDisplayName(this.md5Hash);
} }
/**
* Callable wrapper to further delay lazy ChildFactory creation
* and createNodes() call once lazy loading is functional.
*/
private static class Md5ChildCallable implements Callable<Children> { private static class Md5ChildCallable implements Callable<Children> {
private final Md5Metadata key; private final Md5Metadata key;
private Md5ChildCallable(Md5Metadata key) { private Md5ChildCallable(Md5Metadata key) {