You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-closeable resources can be managed and disposed automatically if used in try-with-resources statements. (Our currently implementation does not guarantee opened resources are safely closed.)
`MockitoAnnotations.openMocks` returns an auto-closeable that a
`try`-with-resources statement ensures will get closed.
Follow-up from #8111 and
related to #8110.
(Also some opportunistic unused import cleanup.)
---
- [x] I’ve reviewed the contributor guide and applied the relevant
portions to this PR.
<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>
Auto-closeable resources can be managed and disposed automatically if used in
try
-with-resources statements. (Our currently implementation does not guarantee opened resources are safely closed.)See the oracle docs for details.
The text was updated successfully, but these errors were encountered: