JetBrains Rider 2026.1 Help

Code inspection: Use compiler-supported nullable attributes

This inspection reports JetBrains nullability annotations that can be replaced with compiler-supported attributes from System.Diagnostics.CodeAnalysis. This is useful in nullable-enabled code, where the compiler-native attributes express the same contract more directly.

Example

using JetBrains.Annotations; class C<T> { [NotNull] public T M() => throw null!; }
using JetBrains.Annotations; class C<T> { [return: System.Diagnostics.CodeAnalysis.NotNull] public T M() => throw null!; }

Quick-fix

Replace the JetBrains nullability annotation with the compiler-supported nullable attribute.

29 March 2026