jdk/src/share/classes/javax/crypto/CryptoAllPermission.java
changeset 10336 0bb1999251f8
parent 5506 202f599c92aa
child 14014 da3648e13e67
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2011, 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
   169      * Returns an enumeration of all the CryptoAllPermission
   169      * Returns an enumeration of all the CryptoAllPermission
   170      * objects in the  container.
   170      * objects in the  container.
   171      *
   171      *
   172      * @return an enumeration of all the CryptoAllPermission objects.
   172      * @return an enumeration of all the CryptoAllPermission objects.
   173      */
   173      */
   174     public Enumeration elements() {
   174     public Enumeration<Permission> elements() {
   175         Vector v = new Vector(1);
   175         Vector<Permission> v = new Vector<>(1);
   176         if (all_allowed) v.add(CryptoAllPermission.INSTANCE);
   176         if (all_allowed) v.add(CryptoAllPermission.INSTANCE);
   177         return v.elements();
   177         return v.elements();
   178     }
   178     }
   179 }
   179 }