[patch] Fix declaration of BeanInfo constants
Jerry Quinn
jlquinn@optonline.net
Wed Jun 30 23:17:00 GMT 2004
Make these constants match the JDK 1.4.2 docs.
2004-06-30 Jerry Quinn <jlquinn@optonline.net>
* java/beans/BeanInfo (ICON_COLOR_16x16, ICON_COLOR_32x32,
ICON_MONO_16x16, ICON_MONO_32x32): Make public static final.
--- BeanInfo.java.~1.4.~ 2003-11-11 23:24:03.000000000 -0500
+++ BeanInfo.java 2004-06-30 19:11:22.000000000 -0400
@@ -74,13 +74,13 @@
public interface BeanInfo {
/** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/
- int ICON_COLOR_16x16 = 1;
+ public static final int ICON_COLOR_16x16 = 1;
/** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/
- int ICON_COLOR_32x32 = 2;
+ public static final int ICON_COLOR_32x32 = 2;
/** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/
- int ICON_MONO_16x16 = 3;
+ public static final int ICON_MONO_16x16 = 3;
/** Use this as a parameter for the getIcon() command to retrieve a certain type of icon. **/
- int ICON_MONO_32x32 = 4;
+ public static final int ICON_MONO_32x32 = 4;
/** Get the general description of this Bean type.
** @return the BeanDescriptor for the Bean, or null if
More information about the Java-patches
mailing list