瀏覽代碼

fix: warnings

Bruce Wayne 1 年之前
父節點
當前提交
4095c3bbb2

+ 1 - 3
NatTypeTester.Models/NatTypeTesterModelsModule.cs

@@ -4,6 +4,4 @@ using Volo.Abp.Modularity;
 namespace NatTypeTester.Models;
 
 [UsedImplicitly]
-public class NatTypeTesterModelsModule : AbpModule
-{
-}
+public class NatTypeTesterModelsModule : AbpModule;

+ 4 - 4
NatTypeTester.WinUI/Views/ReactivePages.cs

@@ -1,10 +1,10 @@
 // https://github.com/microsoft/microsoft-ui-xaml/issues/931
 namespace NatTypeTester.Views;
 
-internal abstract class MainReactivePage : ReactivePage<MainWindowViewModel> { }
+internal abstract class MainReactivePage : ReactivePage<MainWindowViewModel>;
 
-internal abstract class SettingReactivePage : ReactivePage<SettingViewModel> { }
+internal abstract class SettingReactivePage : ReactivePage<SettingViewModel>;
 
-internal abstract class RFC5780ReactivePage : ReactivePage<RFC5780ViewModel> { }
+internal abstract class RFC5780ReactivePage : ReactivePage<RFC5780ViewModel>;
 
-internal abstract class RFC3489ReactivePage : ReactivePage<RFC3489ViewModel> { }
+internal abstract class RFC3489ReactivePage : ReactivePage<RFC3489ViewModel>;

+ 1 - 1
STUN/Messages/StunAttributeValues/ChangedAddressStunAttributeValue.cs

@@ -3,4 +3,4 @@ namespace STUN.Messages.StunAttributeValues;
 /// <summary>
 /// https://tools.ietf.org/html/rfc3489#section-11.2.3
 /// </summary>
-public class ChangedAddressStunAttributeValue : AddressStunAttributeValue { }
+public class ChangedAddressStunAttributeValue : AddressStunAttributeValue;

+ 1 - 1
STUN/Messages/StunAttributeValues/MappedAddressStunAttributeValue.cs

@@ -3,4 +3,4 @@ namespace STUN.Messages.StunAttributeValues;
 /// <summary>
 /// https://tools.ietf.org/html/rfc5389#section-15.1
 /// </summary>
-public class MappedAddressStunAttributeValue : AddressStunAttributeValue { }
+public class MappedAddressStunAttributeValue : AddressStunAttributeValue;

+ 1 - 1
STUN/Messages/StunAttributeValues/OtherAddressStunAttributeValue.cs

@@ -3,4 +3,4 @@ namespace STUN.Messages.StunAttributeValues;
 /// <summary>
 /// https://tools.ietf.org/html/rfc5780#section-7.4
 /// </summary>
-public class OtherAddressStunAttributeValue : AddressStunAttributeValue { }
+public class OtherAddressStunAttributeValue : AddressStunAttributeValue;

+ 1 - 1
STUN/Messages/StunAttributeValues/ReflectedFromStunAttributeValue.cs

@@ -3,4 +3,4 @@ namespace STUN.Messages.StunAttributeValues;
 /// <summary>
 /// https://tools.ietf.org/html/rfc3489#section-11.2.11
 /// </summary>
-public class ReflectedFromStunAttributeValue : AddressStunAttributeValue { }
+public class ReflectedFromStunAttributeValue : AddressStunAttributeValue;

+ 1 - 1
STUN/Messages/StunAttributeValues/ResponseAddressStunAttributeValue.cs

@@ -3,4 +3,4 @@ namespace STUN.Messages.StunAttributeValues;
 /// <summary>
 /// https://tools.ietf.org/html/rfc3489#section-11.2.2
 /// </summary>
-public class ResponseAddressStunAttributeValue : AddressStunAttributeValue { }
+public class ResponseAddressStunAttributeValue : AddressStunAttributeValue;

+ 1 - 1
STUN/Messages/StunAttributeValues/SourceAddressStunAttributeValue.cs

@@ -3,4 +3,4 @@ namespace STUN.Messages.StunAttributeValues;
 /// <summary>
 /// https://tools.ietf.org/html/rfc3489#section-11.2.5
 /// </summary>
-public class SourceAddressStunAttributeValue : AddressStunAttributeValue { }
+public class SourceAddressStunAttributeValue : AddressStunAttributeValue;