/[classpath]/classpath/java/beans/Beans.java
ViewVC logotype

Diff of /classpath/java/beans/Beans.java

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

revision 1.9 by mkoch, Mon Mar 17 16:28:50 2003 UTC revision 1.9.2.1 by tromey, Sun Oct 10 00:04:38 2004 UTC
# Line 1  Line 1 
1  /* java.beans.Beans  /* java.beans.Beans
2     Copyright (C) 1998, 1999 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 189  public class Beans Line 189  public class Beans
189     * @return the Bean as a new view, or if the operation     * @return the Bean as a new view, or if the operation
190     *         could not be performed, the Bean itself.     *         could not be performed, the Bean itself.
191     */     */
192    public static Object getInstanceOf(Object bean, Class newClass)    public static Object getInstanceOf(Object bean, Class<?> newClass)
193    {    {
194      return bean;      return bean;
195    }    }
# Line 208  public class Beans Line 208  public class Beans
208     * @return whether the Bean can be cast to the class type     * @return whether the Bean can be cast to the class type
209     *         in question.     *         in question.
210     */     */
211    public static boolean isInstanceOf(Object bean, Class newBeanClass)    public static boolean isInstanceOf(Object bean, Class<?> newBeanClass)
212    {    {
213      return newBeanClass.isInstance(bean);      return newBeanClass.isInstance(bean);
214    }    }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.9.2.1

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