From 5e91416c539197397166e23d429be074e30feb57 Mon Sep 17 00:00:00 2001 From: SuhorukovAnton Date: Tue, 28 Dec 2021 18:44:54 +0300 Subject: [PATCH] analizators/s4035 --- common/ASC.Api.Core/Core/ApiDateTime.cs | 2 +- common/ASC.VoipService/VoipModel.cs | 2 +- products/ASC.Files/Core/Core/Entries/FileEntry.cs | 2 +- products/ASC.Files/Core/Core/Entries/Tag.cs | 2 +- web/ASC.Web.Core/Users/UserPhotoManager.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/ASC.Api.Core/Core/ApiDateTime.cs b/common/ASC.Api.Core/Core/ApiDateTime.cs index 8a4e79495e6..125aead66e8 100644 --- a/common/ASC.Api.Core/Core/ApiDateTime.cs +++ b/common/ASC.Api.Core/Core/ApiDateTime.cs @@ -37,7 +37,7 @@ namespace ASC.Api.Core { [TypeConverter(typeof(ApiDateTimeTypeConverter))] - public class ApiDateTime : IComparable, IComparable + public sealed class ApiDateTime : IComparable, IComparable { internal static readonly string[] Formats = new[] { diff --git a/common/ASC.VoipService/VoipModel.cs b/common/ASC.VoipService/VoipModel.cs index 035cc313886..670da6de85b 100644 --- a/common/ASC.VoipService/VoipModel.cs +++ b/common/ASC.VoipService/VoipModel.cs @@ -90,7 +90,7 @@ public Queue(string id, string name, int size, string waitUrl, int waitTime) } } - public class WorkingHours + public sealed class WorkingHours { public bool Enabled { get; set; } public TimeSpan? From { get; set; } diff --git a/products/ASC.Files/Core/Core/Entries/FileEntry.cs b/products/ASC.Files/Core/Core/Entries/FileEntry.cs index 7172fa396f5..e6702feaf50 100644 --- a/products/ASC.Files/Core/Core/Entries/FileEntry.cs +++ b/products/ASC.Files/Core/Core/Entries/FileEntry.cs @@ -155,7 +155,7 @@ public override bool Equals(object obj) return obj is FileEntry f && Equals(f.ID, ID); } - public bool Equals(FileEntry obj) + public virtual bool Equals(FileEntry obj) { return Equals(obj.ID, ID); } diff --git a/products/ASC.Files/Core/Core/Entries/Tag.cs b/products/ASC.Files/Core/Core/Entries/Tag.cs index 8f4f8668e33..246c8245947 100644 --- a/products/ASC.Files/Core/Core/Entries/Tag.cs +++ b/products/ASC.Files/Core/Core/Entries/Tag.cs @@ -42,7 +42,7 @@ public enum TagType [Serializable] [DebuggerDisplay("{TagName} ({Id}) entry {EntryType} ({EntryId})")] - public class Tag + public sealed class Tag { public string TagName { get; set; } diff --git a/web/ASC.Web.Core/Users/UserPhotoManager.cs b/web/ASC.Web.Core/Users/UserPhotoManager.cs index e60b91b47a8..8680bd8e50a 100644 --- a/web/ASC.Web.Core/Users/UserPhotoManager.cs +++ b/web/ASC.Web.Core/Users/UserPhotoManager.cs @@ -50,7 +50,7 @@ namespace ASC.Web.Core.Users { [Transient] - public class ResizeWorkerItem : DistributedTask + public sealed class ResizeWorkerItem : DistributedTask { public ResizeWorkerItem() {