src/java.base/share/classes/java/net/URLPermission.java
changeset 57956 e0b8b019d2f5
parent 53018 8bf9268df0e2
child 58242 94bb65cb37d3
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2019, 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
   149  *
   149  *
   150  * @since 1.8
   150  * @since 1.8
   151  */
   151  */
   152 public final class URLPermission extends Permission {
   152 public final class URLPermission extends Permission {
   153 
   153 
       
   154     @java.io.Serial
   154     private static final long serialVersionUID = -2702463814894478682L;
   155     private static final long serialVersionUID = -2702463814894478682L;
   155 
   156 
   156     private transient String scheme;
   157     private transient String scheme;
   157     private transient String ssp;                 // scheme specific part
   158     private transient String ssp;                 // scheme specific part
   158     private transient String path;
   159     private transient String path;
   503     }
   504     }
   504 
   505 
   505     /**
   506     /**
   506      * restore the state of this object from stream
   507      * restore the state of this object from stream
   507      */
   508      */
       
   509     @java.io.Serial
   508     private void readObject(ObjectInputStream s)
   510     private void readObject(ObjectInputStream s)
   509         throws IOException, ClassNotFoundException {
   511         throws IOException, ClassNotFoundException {
   510         ObjectInputStream.GetField fields = s.readFields();
   512         ObjectInputStream.GetField fields = s.readFields();
   511         String actions = (String)fields.get("actions", null);
   513         String actions = (String)fields.get("actions", null);
   512 
   514