This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix declaration of BeanInfo constants


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]