Skip to content

Commit 46e4185

Browse files
committed
nfs: avoid autoboxing by getting files access type
streams can map direct to int primitive types, thus no need to use Integer. Acked-by: Lea Morschel Target: master
1 parent 28c3bb0 commit 46e4185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/dcache/nfs/v4/FileTracker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017 - 2023 Deutsches Elektronen-Synchroton,
2+
* Copyright (c) 2017 - 2025 Deutsches Elektronen-Synchroton,
33
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
44
*
55
* This library is free software; you can redistribute it and/or modify
@@ -254,7 +254,7 @@ public int getShareAccess(NFS4Client client, Inode inode, stateid4 stateid) thro
254254
return opens.stream()
255255
.filter(s -> client.getId() == s.client.getId())
256256
.filter(s -> s.stateid.equals(stateid))
257-
.map(OpenState::getShareAccess)
257+
.mapToInt(OpenState::getShareAccess)
258258
.findFirst()
259259
.orElseThrow(BadStateidException::new);
260260
} finally {

0 commit comments

Comments
 (0)