Skip to content

Commit

Permalink
Removed use of Maybe
Browse files Browse the repository at this point in the history
closes # 748
  • Loading branch information
amitjoy committed May 7, 2024
1 parent 2c2e1b1 commit 87851df
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import com.google.common.base.Predicates;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.google.mu.util.Maybe;
import com.osgifx.console.agent.dto.XHealthCheckDTO;
import com.osgifx.console.agent.dto.XHealthCheckResultDTO;
import com.osgifx.console.agent.dto.XHealthCheckResultDTO.ResultDTO;
Expand Down Expand Up @@ -172,7 +171,7 @@ private void initHcList() {
private FilteredList<String> initSearchFilter(final ObservableList<String> metadata) {
final var filteredMetadataList = new FilteredList<>(metadata);
updateFilteredList(filteredMetadataList);
Maybe.of(searchText).ifPresent(st -> searchText.textProperty().addListener(obs -> {
java.util.Optional.of(searchText).ifPresent(st -> searchText.textProperty().addListener(obs -> {
updateFilteredList(filteredMetadataList);
searchText.requestFocus();
}));
Expand Down

0 comments on commit 87851df

Please sign in to comment.