Skip to content

Commit ca91b1f

Browse files
committed
Resharper: remove redundant body
1 parent 875ac54 commit ca91b1f

File tree

49 files changed

+54
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+54
-162
lines changed

src/Examples/DapperExample/TranslationToSql/TreeNodes/FilterNode.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ namespace DapperExample.TranslationToSql.TreeNodes;
33
/// <summary>
44
/// Represents the base type for filters that return a boolean value.
55
/// </summary>
6-
internal abstract class FilterNode : SqlTreeNode
7-
{
8-
}
6+
internal abstract class FilterNode : SqlTreeNode;

src/Examples/DapperExample/TranslationToSql/TreeNodes/SqlValueNode.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ namespace DapperExample.TranslationToSql.TreeNodes;
33
/// <summary>
44
/// Represents the base type for values, such as parameters, column references and NULL.
55
/// </summary>
6-
internal abstract class SqlValueNode : SqlTreeNode
7-
{
8-
}
6+
internal abstract class SqlValueNode : SqlTreeNode;

src/Examples/DatabasePerTenantExample/Controllers/EmployeesController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ namespace DatabasePerTenantExample.Controllers;
55

66
[DisableRoutingConvention]
77
[Route("api/{tenantName}/employees")]
8-
partial class EmployeesController
9-
{
10-
}
8+
partial class EmployeesController;

src/JsonApiDotNetCore.Annotations/Resources/Annotations/EagerLoadAttribute.netstandard.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.Resources.Annotations;
77
/// </summary>
88
[PublicAPI]
99
[AttributeUsage(AttributeTargets.Property)]
10-
public sealed class EagerLoadAttribute : Attribute
11-
{
12-
}
10+
public sealed class EagerLoadAttribute : Attribute;

src/JsonApiDotNetCore.Annotations/Resources/Annotations/NoResourceAttribute.shared.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ namespace JsonApiDotNetCore.Resources.Annotations;
88
/// </summary>
99
[PublicAPI]
1010
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
11-
public sealed class NoResourceAttribute : Attribute
12-
{
13-
}
11+
public sealed class NoResourceAttribute : Attribute;

src/JsonApiDotNetCore/AtomicOperations/Processors/IAddToRelationshipProcessor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ namespace JsonApiDotNetCore.AtomicOperations.Processors;
1616
/// </typeparam>
1717
[PublicAPI]
1818
public interface IAddToRelationshipProcessor<TResource, TId> : IOperationProcessor
19-
where TResource : class, IIdentifiable<TId>
20-
{
21-
}
19+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/AtomicOperations/Processors/ICreateProcessor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ namespace JsonApiDotNetCore.AtomicOperations.Processors;
1616
/// </typeparam>
1717
[PublicAPI]
1818
public interface ICreateProcessor<TResource, TId> : IOperationProcessor
19-
where TResource : class, IIdentifiable<TId>
20-
{
21-
}
19+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/AtomicOperations/Processors/IDeleteProcessor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ namespace JsonApiDotNetCore.AtomicOperations.Processors;
1616
/// </typeparam>
1717
[PublicAPI]
1818
public interface IDeleteProcessor<TResource, TId> : IOperationProcessor
19-
where TResource : class, IIdentifiable<TId>
20-
{
21-
}
19+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/AtomicOperations/Processors/IRemoveFromRelationshipProcessor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ namespace JsonApiDotNetCore.AtomicOperations.Processors;
1212
/// <typeparam name="TId"></typeparam>
1313
[PublicAPI]
1414
public interface IRemoveFromRelationshipProcessor<TResource, TId> : IOperationProcessor
15-
where TResource : class, IIdentifiable<TId>
16-
{
17-
}
15+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/AtomicOperations/Processors/ISetRelationshipProcessor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ namespace JsonApiDotNetCore.AtomicOperations.Processors;
1616
/// </typeparam>
1717
[PublicAPI]
1818
public interface ISetRelationshipProcessor<TResource, TId> : IOperationProcessor
19-
where TResource : class, IIdentifiable<TId>
20-
{
21-
}
19+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/AtomicOperations/Processors/IUpdateProcessor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ namespace JsonApiDotNetCore.AtomicOperations.Processors;
1717
/// </typeparam>
1818
[PublicAPI]
1919
public interface IUpdateProcessor<TResource, TId> : IOperationProcessor
20-
where TResource : class, IIdentifiable<TId>
21-
{
22-
}
20+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/Controllers/Annotations/DisableRoutingConventionAttribute.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ namespace JsonApiDotNetCore.Controllers.Annotations;
1111
/// ]]></example>
1212
[PublicAPI]
1313
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
14-
public sealed class DisableRoutingConventionAttribute : Attribute
15-
{
16-
}
14+
public sealed class DisableRoutingConventionAttribute : Attribute;

src/JsonApiDotNetCore/Middleware/IAsyncConvertEmptyActionResultFilter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ namespace JsonApiDotNetCore.Middleware;
1414
/// https://github.com/dotnet/aspnetcore/issues/16969
1515
/// </summary>
1616
[PublicAPI]
17-
public interface IAsyncConvertEmptyActionResultFilter : IAsyncAlwaysRunResultFilter
18-
{
19-
}
17+
public interface IAsyncConvertEmptyActionResultFilter : IAsyncAlwaysRunResultFilter;

src/JsonApiDotNetCore/Middleware/IAsyncJsonApiExceptionFilter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.Middleware;
77
/// Application-wide exception filter that invokes <see cref="IExceptionHandler" /> for JSON:API requests.
88
/// </summary>
99
[PublicAPI]
10-
public interface IAsyncJsonApiExceptionFilter : IAsyncExceptionFilter
11-
{
12-
}
10+
public interface IAsyncJsonApiExceptionFilter : IAsyncExceptionFilter;

src/JsonApiDotNetCore/Middleware/IAsyncQueryStringActionFilter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.Middleware;
77
/// Application-wide entry point for processing JSON:API request query strings.
88
/// </summary>
99
[PublicAPI]
10-
public interface IAsyncQueryStringActionFilter : IAsyncActionFilter
11-
{
12-
}
10+
public interface IAsyncQueryStringActionFilter : IAsyncActionFilter;

src/JsonApiDotNetCore/Middleware/IJsonApiInputFormatter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.Middleware;
77
/// Application-wide entry point for reading JSON:API request bodies.
88
/// </summary>
99
[PublicAPI]
10-
public interface IJsonApiInputFormatter : IInputFormatter
11-
{
12-
}
10+
public interface IJsonApiInputFormatter : IInputFormatter;

src/JsonApiDotNetCore/Middleware/IJsonApiOutputFormatter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.Middleware;
77
/// Application-wide entry point for writing JSON:API response bodies.
88
/// </summary>
99
[PublicAPI]
10-
public interface IJsonApiOutputFormatter : IOutputFormatter
11-
{
12-
}
10+
public interface IJsonApiOutputFormatter : IOutputFormatter;

src/JsonApiDotNetCore/Middleware/IJsonApiRoutingConvention.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.Middleware;
77
/// Service for specifying which routing convention to use. This can be overridden to customize the relation between controllers and mapped routes.
88
/// </summary>
99
[PublicAPI]
10-
public interface IJsonApiRoutingConvention : IApplicationModelConvention, IControllerResourceMapping
11-
{
12-
}
10+
public interface IJsonApiRoutingConvention : IApplicationModelConvention, IControllerResourceMapping;

src/JsonApiDotNetCore/Queries/Expressions/IdentifierExpression.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ namespace JsonApiDotNetCore.Queries.Expressions;
33
/// <summary>
44
/// Represents the base type for an identifier, such as a JSON:API attribute/relationship name, a constant value between quotes, or <c>null</c>.
55
/// </summary>
6-
public abstract class IdentifierExpression : QueryExpression
7-
{
8-
}
6+
public abstract class IdentifierExpression : QueryExpression;

src/JsonApiDotNetCore/QueryStrings/IFilterQueryStringParameterReader.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.QueryStrings;
77
/// Reads the 'filter' query string parameter and produces a set of query constraints from it.
88
/// </summary>
99
[PublicAPI]
10-
public interface IFilterQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider
11-
{
12-
}
10+
public interface IFilterQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider;

src/JsonApiDotNetCore/QueryStrings/IIncludeQueryStringParameterReader.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.QueryStrings;
77
/// Reads the 'include' query string parameter and produces a set of query constraints from it.
88
/// </summary>
99
[PublicAPI]
10-
public interface IIncludeQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider
11-
{
12-
}
10+
public interface IIncludeQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider;

src/JsonApiDotNetCore/QueryStrings/IPaginationQueryStringParameterReader.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.QueryStrings;
77
/// Reads the 'page' query string parameter and produces a set of query constraints from it.
88
/// </summary>
99
[PublicAPI]
10-
public interface IPaginationQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider
11-
{
12-
}
10+
public interface IPaginationQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider;

src/JsonApiDotNetCore/QueryStrings/IResourceDefinitionQueryableParameterReader.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@ namespace JsonApiDotNetCore.QueryStrings;
99
/// query constraints from it.
1010
/// </summary>
1111
[PublicAPI]
12-
public interface IResourceDefinitionQueryableParameterReader : IQueryStringParameterReader, IQueryConstraintProvider
13-
{
14-
}
12+
public interface IResourceDefinitionQueryableParameterReader : IQueryStringParameterReader, IQueryConstraintProvider;

src/JsonApiDotNetCore/QueryStrings/ISortQueryStringParameterReader.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.QueryStrings;
77
/// Reads the 'sort' query string parameter and produces a set of query constraints from it.
88
/// </summary>
99
[PublicAPI]
10-
public interface ISortQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider
11-
{
12-
}
10+
public interface ISortQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider;

src/JsonApiDotNetCore/QueryStrings/ISparseFieldSetQueryStringParameterReader.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ namespace JsonApiDotNetCore.QueryStrings;
77
/// Reads the 'fields' query string parameter and produces a set of query constraints from it.
88
/// </summary>
99
[PublicAPI]
10-
public interface ISparseFieldSetQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider
11-
{
12-
}
10+
public interface ISparseFieldSetQueryStringParameterReader : IQueryStringParameterReader, IQueryConstraintProvider;

src/JsonApiDotNetCore/Repositories/IResourceRepository.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ namespace JsonApiDotNetCore.Repositories;
1414
/// </typeparam>
1515
[PublicAPI]
1616
public interface IResourceRepository<TResource, in TId> : IResourceReadRepository<TResource, TId>, IResourceWriteRepository<TResource, TId>
17-
where TResource : class, IIdentifiable<TId>
18-
{
19-
}
17+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/Resources/JsonApiResourceDefinition.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,5 @@ public virtual void OnSerialize(TResource resource)
177177
/// This is an alias type intended to simplify the implementation's method signature. See <see cref="CreateSortExpressionFromLambda" /> for usage
178178
/// details.
179179
/// </summary>
180-
public sealed class PropertySortOrder : List<(Expression<Func<TResource, object?>> KeySelector, ListSortDirection SortDirection)>
181-
{
182-
}
180+
public sealed class PropertySortOrder : List<(Expression<Func<TResource, object?>> KeySelector, ListSortDirection SortDirection)>;
183181
}

src/JsonApiDotNetCore/Resources/QueryStringParameterHandlers.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ namespace JsonApiDotNetCore.Resources;
66
/// This is an alias type intended to simplify the implementation's method signature. See
77
/// <see cref="IResourceDefinition{TResource, TId}.OnRegisterQueryableHandlersForQueryStringParameters" /> for usage details.
88
/// </summary>
9-
public sealed class QueryStringParameterHandlers<TResource> : Dictionary<string, Func<IQueryable<TResource>, StringValues, IQueryable<TResource>>>
10-
{
11-
}
9+
public sealed class QueryStringParameterHandlers<TResource> : Dictionary<string, Func<IQueryable<TResource>, StringValues, IQueryable<TResource>>>;

src/JsonApiDotNetCore/Services/IResourceCommandService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ namespace JsonApiDotNetCore.Services;
1414
public interface IResourceCommandService<TResource, in TId>
1515
: ICreateService<TResource, TId>, IAddToRelationshipService<TResource, TId>, IUpdateService<TResource, TId>, ISetRelationshipService<TResource, TId>,
1616
IDeleteService<TResource, TId>, IRemoveFromRelationshipService<TResource, TId>
17-
where TResource : class, IIdentifiable<TId>
18-
{
19-
}
17+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/Services/IResourceQueryService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ namespace JsonApiDotNetCore.Services;
1313
/// </typeparam>
1414
public interface IResourceQueryService<TResource, in TId>
1515
: IGetAllService<TResource, TId>, IGetByIdService<TResource, TId>, IGetRelationshipService<TResource, TId>, IGetSecondaryService<TResource, TId>
16-
where TResource : class, IIdentifiable<TId>
17-
{
18-
}
16+
where TResource : class, IIdentifiable<TId>;

src/JsonApiDotNetCore/Services/IResourceService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ namespace JsonApiDotNetCore.Services;
1212
/// The resource identifier type.
1313
/// </typeparam>
1414
public interface IResourceService<TResource, in TId> : IResourceCommandService<TResource, TId>, IResourceQueryService<TResource, TId>
15-
where TResource : class, IIdentifiable<TId>
16-
{
17-
}
15+
where TResource : class, IIdentifiable<TId>;

test/DiscoveryTests/PrivateResource.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ namespace DiscoveryTests;
66

77
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
88
[Resource]
9-
public sealed class PrivateResource : Identifiable<int>
10-
{
11-
}
9+
public sealed class PrivateResource : Identifiable<int>;

test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/PaintingsController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.HostingInIIS;
55

66
[DisableRoutingConvention]
77
[Route("custom/path/to/paintings-of-the-world")]
8-
partial class PaintingsController
9-
{
10-
}
8+
partial class PaintingsController;

test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/WebProductsController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy;
55

66
[DisableRoutingConvention]
77
[Route("{countryCode}/products")]
8-
partial class WebProductsController
9-
{
10-
}
8+
partial class WebProductsController;

test/JsonApiDotNetCoreTests/IntegrationTests/MultiTenancy/WebShopsController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.MultiTenancy;
55

66
[DisableRoutingConvention]
77
[Route("{countryCode}/shops")]
8-
partial class WebShopsController
9-
{
10-
}
8+
partial class WebShopsController;

test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/PillowsController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
namespace JsonApiDotNetCoreTests.IntegrationTests.RestrictedControllers;
44

55
[DisableQueryString("skipCache")]
6-
partial class PillowsController
7-
{
8-
}
6+
partial class PillowsController;

test/JsonApiDotNetCoreTests/IntegrationTests/RestrictedControllers/SofasController.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44
namespace JsonApiDotNetCoreTests.IntegrationTests.RestrictedControllers;
55

66
[DisableQueryString(JsonApiQueryStringParameters.Sort | JsonApiQueryStringParameters.Page)]
7-
partial class SofasController
8-
{
9-
}
7+
partial class SofasController;

test/JsonApiDotNetCoreTests/UnitTests/Configuration/DependencyContainerRegistrationTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,7 @@ public SomeSingletonService(SomeScopedService scopedService)
153153
}
154154

155155
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
156-
private sealed class SomeScopedService
157-
{
158-
}
156+
private sealed class SomeScopedService;
159157

160158
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
161159
private sealed class CircularServiceA

test/JsonApiDotNetCoreTests/UnitTests/Configuration/ServiceCollectionExtensionsTests.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,10 @@ public void Can_register_resource_definition_for_Id_type_Guid()
164164
provider.GetRequiredService(typeof(IResourceDefinition<ResourceOfGuid, Guid>)).Should().BeOfType<ResourceDefinitionOfGuid>();
165165
}
166166

167-
private sealed class ResourceOfInt32 : Identifiable<int>
168-
{
169-
}
167+
private sealed class ResourceOfInt32 : Identifiable<int>;
170168

171169
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
172-
private sealed class ResourceOfGuid : Identifiable<Guid>
173-
{
174-
}
170+
private sealed class ResourceOfGuid : Identifiable<Guid>;
175171

176172
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
177173
private sealed class ResourceServiceOfInt32 : IResourceService<ResourceOfInt32, int>
@@ -584,7 +580,5 @@ public TestDbContext(DbContextOptions<TestDbContext> options)
584580
}
585581

586582
[UsedImplicitly(ImplicitUseKindFlags.Access)]
587-
private sealed class Person : Identifiable<int>
588-
{
589-
}
583+
private sealed class Person : Identifiable<int>;
590584
}

test/JsonApiDotNetCoreTests/UnitTests/Links/LinkInclusionTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,7 @@ public void Applies_cascading_settings_for_relationship_links(LinkTypes linksInR
372372
}
373373
}
374374

375-
private sealed class ExampleResource : Identifiable<int>
376-
{
377-
}
375+
private sealed class ExampleResource : Identifiable<int>;
378376

379377
private sealed class FakeHttpContextAccessor : IHttpContextAccessor
380378
{

test/JsonApiDotNetCoreTests/UnitTests/Middleware/JsonApiMiddlewareTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ public enum IsCollection
172172
}
173173

174174
[UsedImplicitly(ImplicitUseTargetFlags.Itself)]
175-
private sealed class Person : Identifiable<int>
176-
{
177-
}
175+
private sealed class Person : Identifiable<int>;
178176

179177
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
180178
private sealed class ItemTag : Identifiable<int>

test/JsonApiDotNetCoreTests/UnitTests/ResourceGraph/ResourceGraphBuilderTests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -428,15 +428,11 @@ private sealed class ResourceWithoutId : IIdentifiable
428428
}
429429

430430
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
431-
private sealed class NonResource
432-
{
433-
}
431+
private sealed class NonResource;
434432

435433
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
436434
[NoResource]
437-
private sealed class NonResourceWithSuppression
438-
{
439-
}
435+
private sealed class NonResourceWithSuppression;
440436

441437
// ReSharper disable once ClassCanBeSealed.Global
442438
[UsedImplicitly(ImplicitUseTargetFlags.Members)]

test/JsonApiDotNetCoreTests/UnitTests/TypeConversion/RuntimeTypeConverterTests.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,9 @@ public void Returns_default_value_for_empty_string(Type type, object expectedVal
150150
result.Should().Be(expectedValue);
151151
}
152152

153-
private interface IFace
154-
{
155-
}
153+
private interface IFace;
156154

157-
private class BaseType : IFace
158-
{
159-
}
155+
private class BaseType : IFace;
160156

161-
private sealed class DerivedType : BaseType
162-
{
163-
}
157+
private sealed class DerivedType : BaseType;
164158
}

0 commit comments

Comments
 (0)