mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6725221: Standardize obtaining boolean properties with defaults
Reviewed-by: prr, rriggs
This commit is contained in:
parent
194bc08a89
commit
6cc4bb1169
3 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue