garydgregory commented on code in PR #300:
URL: https://github.com/apache/commons-vfs/pull/300#discussion_r976567939
##########
commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileProvider.java:
##########
@@ -137,17 +137,28 @@ protected FileSystem findFileSystem(final Comparable<?>
key, final FileSystemOpt
* Frees unused resources.
*/
public void freeUnusedResources() {
+ // process snapshot outside lock
+
Stream.of(getAllFileSystemSnapshot()).filter(AbstractFileSystem::isReleaseable)
+
.forEach(AbstractFileSystem::closeCommunicationLink);
+ }
+
+
+ /**
+ * Gets snapshot of all fileSystem under lock.
+ *
+ * @return AbstractFileSystem Array
+ * @since 2.10.0
Review Comment:
Remove extra whitespace after since tag
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]