File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
src/JsonApiDotNetCore/Serialization/Response
test/NoEntityFrameworkTests Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,7 @@ namespace JsonApiDotNetCore.Serialization.Response;
6
6
/// <inheritdoc cref="IFingerprintGenerator" />
7
7
internal sealed class FingerprintGenerator : IFingerprintGenerator
8
8
{
9
- #if NET6_0
10
- private static readonly byte [ ] Separator = Encoding . UTF8 . GetBytes ( "|" ) ;
11
- #else
12
9
private static readonly byte [ ] Separator = "|"u8 . ToArray ( ) ;
13
- #endif
14
10
private static readonly uint [ ] LookupTable = Enumerable . Range ( 0 , 256 ) . Select ( ToLookupEntry ) . ToArray ( ) ;
15
11
16
12
private static uint ToLookupEntry ( int index )
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ namespace NoEntityFrameworkTests;
10
10
11
11
public sealed class NullSafeExpressionRewriterTests
12
12
{
13
+ private const nint OnePointer = 1 ;
14
+
13
15
[ Fact ]
14
16
public void Can_rewrite_where_clause_with_constant_comparison ( )
15
17
{
@@ -498,11 +500,7 @@ public void Can_rewrite_order_by_clause_with_IntPtr()
498
500
Parent = new TestResource
499
501
{
500
502
Id = generator . GetNext ( ) ,
501
- #if NET6_0
502
- Pointer = ( IntPtr ) 1
503
- #else
504
- Pointer = 1
505
- #endif
503
+ Pointer = OnePointer
506
504
}
507
505
}
508
506
} ;
You can’t perform that action at this time.
0 commit comments