-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use System.getProperty instead of System.getProperties
Use System.getProperty to get a specific property instead of first retrieving all properties with System.getProperties() only to read one property out of it. This is more friendly to security managers: instead of requiring the permission to read and even write all properties ("java.util.PropertyPermission" "*" "read,write"), the policy only needs to allow reading a specific property, which is much more secure. Depending on the JVM implementation, System.getProperty can also be more efficient.
- Loading branch information
Showing
2 changed files
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters