diff --git a/pkg/analyzer/messages.yaml b/pkg/analyzer/messages.yaml index cd9a94069af..38eba4892a0 100644 --- a/pkg/analyzer/messages.yaml +++ b/pkg/analyzer/messages.yaml @@ -18637,10 +18637,6 @@ HintCode: a.Library(); } ``` - - If type arguments shouldn't be required for the class, then mark the class - with the `[optionalTypeArgs][meta-optionalTypeArgs]` annotation (from - `package:meta`): IMPORT_OF_LEGACY_LIBRARY_INTO_NULL_SAFE: problemMessage: "The library '{0}' is legacy, and shouldn't be imported into a null safe library." correctionMessage: Try migrating the imported library. diff --git a/pkg/analyzer/tool/diagnostics/diagnostics.md b/pkg/analyzer/tool/diagnostics/diagnostics.md index 5efed48883d..b7ddcc920ff 100644 --- a/pkg/analyzer/tool/diagnostics/diagnostics.md +++ b/pkg/analyzer/tool/diagnostics/diagnostics.md @@ -7465,10 +7465,6 @@ void f() { } {% endprettify %} -If type arguments shouldn't be required for the class, then mark the class -with the `[optionalTypeArgs][meta-optionalTypeArgs]` annotation (from -`package:meta`): - ### import_internal_library _The library '{0}' is internal and can't be imported._