6725221: Standardize obtaining boolean properties with defaults

Reviewed-by: prr, rriggs
This commit is contained in:
Mark Powers 2022-05-24 18:16:07 +00:00 committed by Bradford Wetmore
parent 194bc08a89
commit 6cc4bb1169
3 changed files with 8 additions and 8 deletions

View file

@ -34,7 +34,7 @@ import java.util.HashSet;
import static java.util.zip.ZipConstants64.*;
import static java.util.zip.ZipUtils.*;
import sun.nio.cs.UTF_8;
import sun.security.action.GetPropertyAction;
import sun.security.action.GetBooleanAction;
/**
* This class implements an output stream filter for writing files in the
@ -55,8 +55,7 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
* some in jdk7.
*/
private static final boolean inhibitZip64 =
Boolean.parseBoolean(
GetPropertyAction.privilegedGetProperty("jdk.util.zip.inhibitZip64"));
GetBooleanAction.privilegedGetProperty("jdk.util.zip.inhibitZip64");
private static class XEntry {
final ZipEntry entry;