diff --git a/Core/src/org/sleuthkit/autopsy/timeline/ui/filtering/datamodel/CompoundFilterStateImpl.java b/Core/src/org/sleuthkit/autopsy/timeline/ui/filtering/datamodel/CompoundFilterStateImpl.java index ead4199fee..ebcc5b6426 100644 --- a/Core/src/org/sleuthkit/autopsy/timeline/ui/filtering/datamodel/CompoundFilterStateImpl.java +++ b/Core/src/org/sleuthkit/autopsy/timeline/ui/filtering/datamodel/CompoundFilterStateImpl.java @@ -43,11 +43,6 @@ class CompoundFilterStateImpl change) -> { - while (change.next()) { - change.getAddedSubList().forEach(CompoundFilterStateImpl.this::addStateForSubFilter); - } - }); configureListeners(); } @@ -69,6 +64,13 @@ class CompoundFilterStateImpl change) -> { + while (change.next()) { + change.getAddedSubList().forEach(this::addStateForSubFilter); + } + }); + /* * enforce the following relationship between a compound filter and its * subfilters: if a compound filter's active property changes, disable @@ -81,7 +83,6 @@ class CompoundFilterStateImpl subFilterState.setSelected(true)); } }); - } /** @@ -97,7 +98,6 @@ class CompoundFilterStateImpl) { addSubFilterState((FilterState) new CompoundFilterStateImpl<>((CompoundFilter) subFilter)); } else { @@ -120,7 +120,6 @@ class CompoundFilterStateImpl copyOf() { - @SuppressWarnings("unchecked") CompoundFilterStateImpl copy = new CompoundFilterStateImpl<>((FilterType) getFilter().copyOf(),