jdk/src/share/classes/java/lang/SafeVarargs.java
changeset 25163 a7918e311ea4
parent 16026 91424708dab5
equal deleted inserted replaced
25162:c388078278d4 25163:a7918e311ea4
     1 /*
     1 /*
     2  * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2014, 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
    43  * annotated with a {@code @SafeVarargs} annotation, and either:
    43  * annotated with a {@code @SafeVarargs} annotation, and either:
    44  * <ul>
    44  * <ul>
    45  * <li>  the declaration is a fixed arity method or constructor
    45  * <li>  the declaration is a fixed arity method or constructor
    46  *
    46  *
    47  * <li> the declaration is a variable arity method that is neither
    47  * <li> the declaration is a variable arity method that is neither
    48  * {@code static} nor {@code final}.
    48  * {@code static} nor {@code final} nor {@code private}.
    49  *
    49  *
    50  * </ul>
    50  * </ul>
    51  *
    51  *
    52  * <p> Compilers are encouraged to issue warnings when this annotation
    52  * <p> Compilers are encouraged to issue warnings when this annotation
    53  * type is applied to a method or constructor declaration where:
    53  * type is applied to a method or constructor declaration where: