1 /*
   2  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * Class in an unnamed package.
  26  */
  27 
  28 public class C {
  29     /**
  30      * A ctor
  31      * @param c a param
  32      */
  33     public C(UsedInC c){}
  34 
  35     /**
  36      * another ctor
  37      * @param c  a param
  38      * @param s  a param
  39      */
  40     public C(UsedInC c, String s) {}
  41 
  42     /**
  43      * yet another ctor
  44      * @param c  a param
  45      * @param i  a param
  46      */
  47     public C(UsedInC c, int i) {}
  48 
  49     /**
  50      * Field in C.
  51      */
  52     public UsedInC fieldInC;
  53 
  54     /**
  55      * Method in C.
  56      * @param p  a param
  57      * @return UsedInC
  58      */
  59     public UsedInC methodInC(UsedInC p) { return p;}
  60 
  61     /**
  62      * A static method
  63      * @param s  a param
  64      * @return UsedInC
  65      */
  66     public static UsedInC ymethod(String s) {return null;}
  67 
  68     /**
  69      * Another static method variant
  70      * @param value  a param
  71      * @return UsedInC
  72      */
  73     public static UsedInC ymethod(int value) {return -1;}
  74 }