Skip to content

Commit

Permalink
Using Boolean.getBoolean instead of System.getProperty("...") != null
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Jan 15, 2023
1 parent bbfab8e commit ae88cdb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -179,7 +179,7 @@ public class WebappClassLoader extends GlassfishUrlClassLoader
* Use this variable to invoke the security manager when a resource is
* loaded by this classloader.
*/
private final boolean packageDefinitionEnabled = System.getProperty("package.definition") != null;
private final boolean packageDefinitionEnabled = Boolean.getBoolean("package.definition");

/**
* Associated directory context giving access to the resources in this
Expand Down

0 comments on commit ae88cdb

Please sign in to comment.