src/java.base/share/classes/java/io/DeleteOnExitHook.java
changeset 52427 3c6aa484536c
parent 47216 71c04702a3d5
equal deleted inserted replaced
52426:38bf0c9c4e64 52427:3c6aa484536c
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 package java.io;
    25 package java.io;
    26 
    26 
    27 import java.util.*;
    27 import java.util.*;
    28 import java.io.File;
    28 
    29 import jdk.internal.misc.SharedSecrets;
    29 import jdk.internal.access.SharedSecrets;
    30 
    30 
    31 /**
    31 /**
    32  * This class holds a set of filenames to be deleted on VM exit through a shutdown hook.
    32  * This class holds a set of filenames to be deleted on VM exit through a shutdown hook.
    33  * A set is used both to prevent double-insertion of the same file as well as offer
    33  * A set is used both to prevent double-insertion of the same file as well as offer
    34  * quick removal.
    34  * quick removal.