Skip to content

Commit 6bbe6ba

Browse files
committed
Make 'content' and 'appendCount' field final
Signed-off-by: Manish Dait <[email protected]>
1 parent 042ba76 commit 6bbe6ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hiero-enterprise-base/src/test/java/com/openelements/hiero/base/test/FileClientImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ void testCreateFileForSizeGreaterThanFileCreateMaxSize() throws HieroException {
5959
final FileCreateResult fileCreateResult = Mockito.mock(FileCreateResult.class);
6060

6161
// given
62-
byte[] content = new byte[FileCreateRequest.FILE_CREATE_MAX_SIZE * 2];
62+
final byte[] content = new byte[FileCreateRequest.FILE_CREATE_MAX_SIZE * 2];
6363
// -1 because 1 for executeFileCreateTransaction()
64-
int appendCount = Math.floorDiv(content.length, FileCreateRequest.FILE_CREATE_MAX_SIZE) - 1;
64+
final int appendCount = Math.floorDiv(content.length, FileCreateRequest.FILE_CREATE_MAX_SIZE) - 1;
6565

6666
//then
6767
when(protocolLayerClient.executeFileCreateTransaction(any(FileCreateRequest.class)))

0 commit comments

Comments
 (0)