avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix BlockEvent.java
Date Tue, 14 May 2002 12:19:09 GMT
donaldp     02/05/14 05:19:09

  Modified:    src/java/org/apache/avalon/phoenix BlockEvent.java
  Log:
  Downgraded m_block to an Object type
  rather than a Block object.
  
  Revision  Changes    Path
  1.6       +15 -3     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/BlockEvent.java
  
  Index: BlockEvent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/BlockEvent.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BlockEvent.java	16 Mar 2002 00:11:54 -0000	1.5
  +++ BlockEvent.java	14 May 2002 12:19:09 -0000	1.6
  @@ -21,7 +21,7 @@
       extends EventObject
   {
       private final String m_name;
  -    private final Block m_block;
  +    private final Object m_block;
       private final BlockInfo m_blockInfo;
   
       /**
  @@ -32,7 +32,7 @@
        * @param blockInfo the BlockInfo object for block
        */
       public BlockEvent( final String name,
  -                       final Block block,
  +                       final Object block,
                          final BlockInfo blockInfo )
       {
           super( name );
  @@ -70,9 +70,21 @@
        *
        * @return the block instance
        */
  -    public Block getBlock()
  +    public Object getObject()
       {
           return m_block;
  +    }
  +
  +    /**
  +     * Retrieve the block instance.
  +     *
  +     * @return the block instance
  +     * @deprecated Use getObject() instead as this may
  +     *             cause a ClassCastException
  +     */
  +    public Block getBlock()
  +    {
  +        return (Block)m_block;
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message