Skip to content

Commit 1094cba

Browse files
committed
AbstractUIInputWidget: use lambda syntax
1 parent ba1a8dc commit 1094cba

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/org/scijava/ui/AbstractUIInputWidget.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,7 @@ public void refreshWidget() {
8080
// on the EDT.
8181
if (ui().requiresEDT()) {
8282
try {
83-
threadService.invoke(new Runnable() {
84-
@Override
85-
public void run() {
86-
doRefresh();
87-
}
88-
});
83+
threadService.invoke(() -> doRefresh());
8984
}
9085
catch (InterruptedException e) {
9186
log.error("Interrupted while refresh widget: " + getClass(), e);

0 commit comments

Comments
 (0)