Skip to content

Commit

Permalink
Solve reported issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel committed Feb 10, 2024
1 parent 2cb4ac1 commit a2a6727
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Qowaiv/Conversion/Mathematics/FractionTypeConverter.cs
Expand Up @@ -13,7 +13,7 @@ public override bool CanConvertFrom(ITypeDescriptorContext? context, Type source
|| base.CanConvertFrom(context, sourceType);

[Pure]
private static bool IsNumber(Type sourceType)
private static bool IsNumber(Type sourceType)
=> sourceType == typeof(decimal)
|| sourceType == typeof(int)
|| sourceType == typeof(long)
Expand Down
2 changes: 0 additions & 2 deletions src/Qowaiv/Identifiers/UuidBehavior.cs
Expand Up @@ -4,8 +4,6 @@
[OpenApiDataType(description: "UUID based identifier", example: "lmZO_haEOTCwGsCcbIZFFg", type: "string", format: "uuid-base64", nullable: true)]
public class UuidBehavior : GuidBehavior
{
internal static new readonly UuidBehavior Instance = new();

/// <summary>Initializes a new instance of the <see cref="UuidBehavior"/> class.</summary>
protected UuidBehavior() { }

Expand Down
2 changes: 1 addition & 1 deletion src/Qowaiv/Uuid.cs
Expand Up @@ -26,7 +26,7 @@ namespace Qowaiv;
#endif
public readonly partial struct Uuid : IXmlSerializable, IFormattable, IEquatable<Uuid>, IComparable, IComparable<Uuid>
{
private static readonly UuidBehavior behavior = UuidBehavior.Instance;
private static readonly UuidBehavior behavior = new();

Check failure on line 29 in src/Qowaiv/Uuid.cs

View workflow job for this annotation

GitHub Actions / Build

'UuidBehavior.UuidBehavior()' is inaccessible due to its protection level

Check failure on line 29 in src/Qowaiv/Uuid.cs

View workflow job for this annotation

GitHub Actions / Build

'UuidBehavior.UuidBehavior()' is inaccessible due to its protection level

Check failure on line 29 in src/Qowaiv/Uuid.cs

View workflow job for this annotation

GitHub Actions / Build

'UuidBehavior.UuidBehavior()' is inaccessible due to its protection level

Check failure on line 29 in src/Qowaiv/Uuid.cs

View workflow job for this annotation

GitHub Actions / Build

'UuidBehavior.UuidBehavior()' is inaccessible due to its protection level

Check failure on line 29 in src/Qowaiv/Uuid.cs

View workflow job for this annotation

GitHub Actions / Build

'UuidBehavior.UuidBehavior()' is inaccessible due to its protection level

Check failure on line 29 in src/Qowaiv/Uuid.cs

View workflow job for this annotation

GitHub Actions / Build

'UuidBehavior.UuidBehavior()' is inaccessible due to its protection level

/// <summary>Gets the size of the <see cref="byte"/> array representation.</summary>
public static readonly int ArraySize = 16;
Expand Down

0 comments on commit a2a6727

Please sign in to comment.