This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.beans.beancontext.BeanContextEvent
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 24 Mar 2003 09:23:51 +0100
- Subject: FYI: Patch: java.beans.beancontext.BeanContextEvent
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I commited the attached patch to trunk to reformat the source of this
class. No code changes.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+fsCXWSOgCCdjSDsRAthvAKCD9jg6D8ilfQK5rGtnGDnJWgd1/gCfViEJ
R4oSL5OczKuD095OAEwR+0s=
=t+9D
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1803
diff -u -r1.1803 ChangeLog
--- ChangeLog 24 Mar 2003 00:50:17 -0000 1.1803
+++ ChangeLog 24 Mar 2003 08:19:20 -0000
@@ -1,3 +1,8 @@
+2003-03-24 Michael Koch <konqueror at gmx dot de>
+
+ * java/beans/beancontext/BeanContextEvent.java:
+ Reformated.
+
2003-03-23 Eric Blake <ebb9 at email dot byu dot edu>
* java/lang/natStringBuffer.cc (regionMatches): New function.
Index: java/beans/beancontext/BeanContextEvent.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/beans/beancontext/BeanContextEvent.java,v
retrieving revision 1.3
diff -u -r1.3 BeanContextEvent.java
--- java/beans/beancontext/BeanContextEvent.java 17 Mar 2003 15:21:45 -0000 1.3
+++ java/beans/beancontext/BeanContextEvent.java 24 Mar 2003 08:19:20 -0000
@@ -44,60 +44,67 @@
* Generic superclass for events fired by <code>BeanContext</code>s.
*
* @author John Keiser
- * @since JDK1.2
+ * @since 1.2
*/
public abstract class BeanContextEvent extends EventObject
{
- /**
- * The <code>BeanContext</code> that most recently passed this
- * event on.
- */
- protected BeanContext propagatedFrom;
-
- /**
- * Create a new event, from the specified <code>BeanContext</code>.
- * <code>propagatedFrom</code> will be initialized to
- * <code>null</code>.
- *
- * @param source the source of the event.
- */
- protected BeanContextEvent(BeanContext source) {
- super(source);
- }
-
- /**
- * Get the <code>BeanContext</code> that originated this event.
- * @return the originator of this event.
- */
- public BeanContext getBeanContext() {
- return (BeanContext)getSource();
- }
-
- /**
- * Get the most recent propagator of this event.
- * If this value is <code>null</code>, you have received the event
- * straight from the source.
- *
- * @return the most recent propagator of this event.
- */
- public BeanContext getPropagatedFrom() {
- return propagatedFrom;
- }
-
- /**
- * Tell whether this event has been propagated.
- * @return <code>true</code> iff <code>getPropagatedFrom() != null</code>.
- */
- public boolean isPropagated() {
- return propagatedFrom != null;
- }
-
- /**
- * Set the most recent propagator of this event.
- * @param propagator the most recent propagator of this event.
- */
- public void setPropagatedFrom(BeanContext propagator) {
- propagatedFrom = propagator;
- }
+ private static final long serialVersionUID = 7267998073569045052L;
+
+ /**
+ * The <code>BeanContext</code> that most recently passed this
+ * event on.
+ */
+ protected BeanContext propagatedFrom;
+
+ /**
+ * Create a new event, from the specified <code>BeanContext</code>.
+ * <code>propagatedFrom</code> will be initialized to
+ * <code>null</code>.
+ *
+ * @param source the source of the event.
+ */
+ protected BeanContextEvent(BeanContext source)
+ {
+ super(source);
+ }
+
+ /**
+ * Get the <code>BeanContext</code> that originated this event.
+ * @return the originator of this event.
+ */
+ public BeanContext getBeanContext()
+ {
+ return (BeanContext)getSource();
+ }
+
+ /**
+ * Get the most recent propagator of this event.
+ * If this value is <code>null</code>, you have received the event
+ * straight from the source.
+ *
+ * @return the most recent propagator of this event.
+ */
+ public BeanContext getPropagatedFrom()
+ {
+ return propagatedFrom;
+ }
+
+ /**
+ * Tell whether this event has been propagated.
+ * @return <code>true</code> iff <code>getPropagatedFrom() != null</code>.
+ */
+ public boolean isPropagated()
+ {
+ return propagatedFrom != null;
+ }
+
+ /**
+ * Set the most recent propagator of this event.
+ * @param propagator the most recent propagator of this event.
+ */
+ public void setPropagatedFrom(BeanContext propagator)
+ {
+ propagatedFrom = propagator;
+ }
}