Skip to content

Commit 62b8fc3

Browse files
authored
[CQ] OpenInAppCodeAction: replace lambda w/ method ref (#8489)
A Java 8 migration. A wee bit more terse. --- <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent a9fa881 commit 62b8fc3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/io/flutter/actions/OpenInAppCodeAction.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ public class OpenInAppCodeAction extends AnAction {
3232
OpenInAppCodeAction() {
3333
// Schedule initialization so that we can discover if `AppCode` is installed *before* we
3434
// need to decide whether to make the action menu visible.
35-
OpenApiUtils.safeInvokeLater(() -> {
36-
initialize();
37-
});
35+
OpenApiUtils.safeInvokeLater(OpenInAppCodeAction::initialize);
3836
}
3937

4038
private static boolean IS_INITIALIZED = false;

0 commit comments

Comments
 (0)