src/share/classes/java/beans/Introspector.java

Print this page
rev 10053 : 8044855: Add missing @since tag under java.beans.*
Reviewed-by:

*** 88,112 **** --- 88,117 ---- * in the information from it (and possibly on up the superclass chain). * <p> * For more information about introspection and design patterns, please * consult the * <a href="http://www.oracle.com/technetwork/java/javase/documentation/spec-136004.html">JavaBeans&trade; specification</a>. + * + * @since 1.1 */ public class Introspector { // Flags that can be used to control getBeanInfo: /** * Flag to indicate to use of all beaninfo. + * @since 1.2 */ public final static int USE_ALL_BEANINFO = 1; /** * Flag to indicate to ignore immediate beaninfo. + * @since 1.2 */ public final static int IGNORE_IMMEDIATE_BEANINFO = 2; /** * Flag to indicate to ignore all beaninfo. + * @since 1.2 */ public final static int IGNORE_ALL_BEANINFO = 3; // Static Caches to speed up introspection. private static final WeakCache<Class<?>, Method[]> declaredMethodCache = new WeakCache<>();
*** 212,221 **** --- 217,227 ---- * associated with the specified beanClass or any of its * parent classes. * @return A BeanInfo object describing the target bean. * @exception IntrospectionException if an exception occurs during * introspection. + * @since 1.2 */ public static BeanInfo getBeanInfo(Class<?> beanClass, int flags) throws IntrospectionException { return getBeanInfo(beanClass, null, flags); }
*** 352,361 **** --- 358,369 ---- /** * Flush all of the Introspector's internal caches. This method is * not normally required. It is normally only needed by advanced * tools that update existing "Class" objects in-place and need * to make the Introspector re-analyze existing Class objects. + * + * @since 1.2 */ public static void flushCaches() { synchronized (declaredMethodCache) { ThreadGroupContext.getContext().clearBeanInfoCache();
*** 375,384 **** --- 383,393 ---- * objects (such as subclasses), even though their state may include * information indirectly obtained from the target Class object. * * @param clz Class object to be flushed. * @throws NullPointerException If the Class object is null. + * @since 1.2 */ public static void flushFromCaches(Class<?> clz) { if (clz == null) { throw new NullPointerException(); }