Skip to content

Commit e988aab

Browse files
committed
Fix two nullability warnings
1 parent aa12670 commit e988aab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/EmbeddedResources/GeneratedDependencyPropertyAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ internal sealed class GeneratedDependencyPropertyAttribute : global::System.Attr
7474
#if NET8_0_OR_GREATER
7575
[global::System.Diagnostics.CodeAnalysis.DisallowNull]
7676
#endif
77-
public string? DefaultValueCallback { get; init; } = null;
77+
public string? DefaultValueCallback { get; init; } = null!;
7878

7979
/// <summary>
8080
/// Gets a value indicating whether or not property values should be cached locally, to improve performance.

components/DependencyPropertyGenerator/src/GeneratedDependencyPropertyAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public sealed class GeneratedDependencyPropertyAttribute : Attribute
6868
#if NET8_0_OR_GREATER
6969
[DisallowNull]
7070
#endif
71-
public string? DefaultValueCallback { get; init; } = null;
71+
public string? DefaultValueCallback { get; init; } = null!;
7272

7373
/// <summary>
7474
/// Gets a value indicating whether or not property values should be cached locally, to improve performance.

0 commit comments

Comments
 (0)