/[classpath]/classpath/java/lang/Void.java
ViewVC logotype

Diff of /classpath/java/lang/Void.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by mark, Tue Jan 22 22:27:00 2002 UTC revision 1.14 by ericb, Sun Feb 24 04:25:16 2002 UTC
# Line 1  Line 1 
1  /* java.lang.Void  /* Void.class - defines void.class
2     Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 7  GNU Classpath is free software; you can Line 7  GNU Classpath is free software; you can
7  it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)  the Free Software Foundation; either version 2, or (at your option)
9  any later version.  any later version.
10    
11  GNU Classpath is distributed in the hope that it will be useful, but  GNU Classpath is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38    
39  package java.lang;  package java.lang;
40    
 /* Written using "Java Class Libraries", 2nd edition, plus online  
  * API docs for JDK 1.2 beta from http://www.javasoft.com.  
  * Status:  Complete.  
  */  
   
41  /**  /**
42   * Void is a placeholder class so that the variable Void.TYPE can be   * Void is a placeholder class so that the variable <code>Void.TYPE</code>
43   * supported for reflection return types.   * (also available as <code>void.class</code>) can be supported for
44     * reflection return types.
45     *
46     * <p>This class could be Serializable, but that is up to Sun.
47   *   *
48   * @author Paul Fisher   * @author Paul Fisher
49   * @author John Keiser   * @author John Keiser
50   * @author Per Bothner <bothner@cygnus.com>   * @author Eric Blake <ebb9@email.byu.edu>
51   * @since JDK1.1   * @since 1.1
52     * @status updated to 1.4
53   */   */
54  public final class Void  public final class Void
55  {  {
56    /**    /**
57     * The return type <code>void</code> is represented by this     * The return type <code>void</code> is represented by this
58     * <code>Class</code> object.     * <code>Class</code> object.
59     */     */
60    public static final Class TYPE = VMClassLoader.getPrimitiveClass('V');    public static final Class TYPE = VMClassLoader.getPrimitiveClass('V');
61    
62    /**    /**
63     * Don't allow Void objects to be made.     * Void is non-instantiable.
64     */     */
65    private Void() { }    private Void() { }
66  }  }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26