Skip to content

Commit b3b3b3c

Browse files
committed
Codestyle and todo
1 parent 8f76152 commit b3b3b3c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FulltextSearchResultsTab.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ public FulltextSearchResultsTab(StateManager stateManager,
8181

8282
@Override
8383
public boolean shouldShow(BibEntry entry) {
84-
return searchQueryProperty.get().map(query -> query.isValid() && query.getSearchFlags().contains(SearchFlags.FULLTEXT)).orElse(false);
84+
return searchQueryProperty.get()
85+
.map(query -> query.isValid() && query.getSearchFlags().contains(SearchFlags.FULLTEXT))
86+
.orElse(false);
8587
}
8688

8789
@Override

src/main/java/org/jabref/gui/preview/PreviewViewer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ public PreviewViewer(DialogService dialogService,
101101
this.clipBoardManager = Injector.instantiateModelOrService(ClipBoardManager.class);
102102
this.taskExecutor = taskExecutor;
103103

104-
this.searchQueryProperty = searchQueryProperty;
105-
this.searchQueryProperty.addListener((queryObservable, queryOldValue, queryNewValue) -> highlightLayoutText());
104+
this.searchQueryProperty = searchQueryProperty; // FIXME Runaway process?
105+
this.searchQueryProperty.addListener((_, _, _) -> highlightLayoutText());
106106

107107
setFitToHeight(true);
108108
setFitToWidth(true);

0 commit comments

Comments
 (0)