commit | 4e37bb698b6c8d18e4e102a6ed6e6b35925ee35f | [log] [tgz] |
---|---|---|
author | Max Kellermann <mk@cm4all.com> | Sun Feb 28 14:58:57 2021 +0100 |
committer | GitHub <noreply@github.com> | Sun Feb 28 08:58:57 2021 -0500 |
tree | be03b4e19f663cc644b866eeb3a3cca3f63b1483 | |
parent | 1887559eb510abb420ccd96823f21f16eb77c691 [diff] |
Rework SoftRefFilesCache locking part 1 (#158) * SoftRefFilesCache: don't call super.close() AbstractVfsComponent.close() is documented to do nothing, so there's no point in calling it. * SoftRefFilesCache: use isEmpty() instead of "size()<1" For some containers, size() is O(n), but isEmpty() is always O(1). * SoftRefFilesCache: remove redundant isInterrupted() check The following ReferenceQueue.remove() call will do that check again. * SoftRefFilesCache: simplify the InterruptedException catch block By reversing the order of "while" and "try/catch", we can simply omit the "break" pseudo-goto statement.
Apache Commons VFS is a Virtual File System library.
More information can be found on the Apache Commons VFS Project homepage. The Javadoc can be browsed. Questions related to the usage of Apache Commons VFS Project should be posted to the user mailing list.
You can download source and binaries from our download page.
Alternatively you can pull it from the central Maven repositories:
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-vfs2</artifactId> <version>2.7.0</version> </dependency>
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
mvn clean test
.If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
This code is under the Apache Licence v2.
See the NOTICE.txt
file for required notices and attributions.
You like Apache Commons VFS Project? Then donate back to the ASF to support the development.
#apache-commons
IRC channel on irc.freenode.org