This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new d54f4b9  Initialize a collection when you create it.
d54f4b9 is described below

commit d54f4b9a10a61937f2fb18dc5a78cf5c52e08dd8
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 20 16:11:16 2020 -0500

    Initialize a collection when you create it.
---
 .../java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java
index eec19f7..9d0f356 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java
@@ -41,8 +41,7 @@ public class JarFileProvider extends ZipFileProvider {
     static final Collection<Capability> capabilities;
 
     static {
-        final Collection<Capability> combined = new ArrayList<>();
-        combined.addAll(ZipFileProvider.capabilities);
+        final Collection<Capability> combined = new 
ArrayList<>(ZipFileProvider.capabilities);
         combined.addAll(Arrays.asList(Capability.ATTRIBUTES, 
Capability.FS_ATTRIBUTES, Capability.SIGNING,
                 Capability.MANIFEST_ATTRIBUTES, Capability.VIRTUAL));
         capabilities = Collections.unmodifiableCollection(combined);

Reply via email to