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 8edb2d25 Reuse Boolean.parseBoolean
8edb2d25 is described below

commit 8edb2d259aad6fd5b84769b129765eb6a0b06a19
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Dec 15 16:05:16 2023 -0500

    Reuse Boolean.parseBoolean
---
 .../src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java
index a6c79ce7..fe4cf13d 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java
@@ -299,8 +299,7 @@ public class VFSClassLoader extends SecureClassLoader {
      * Returns true if we should seal the package where res resides.
      */
     private boolean isSealed(final Resource res) throws FileSystemException {
-        final String sealed = res.getPackageAttribute(Attributes.Name.SEALED);
-        return "true".equalsIgnoreCase(sealed);
+        return 
Boolean.parseBoolean(res.getPackageAttribute(Attributes.Name.SEALED));
     }
 
     /**

Reply via email to