donaldp 02/05/20 03:09:41
Modified: src/java/org/apache/avalon/phoenix/components/application
ListenerSupport.java
Log:
Fix checkstyle violations
Revision Changes Path
1.2 +13 -7
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/ListenerSupport.java
Index: ListenerSupport.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/ListenerSupport.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ListenerSupport.java 19 May 2002 02:46:43 -0000 1.1
+++ ListenerSupport.java 20 May 2002 10:09:41 -0000 1.2
@@ -11,8 +11,8 @@
import org.apache.avalon.phoenix.ApplicationListener;
import org.apache.avalon.phoenix.BlockEvent;
import org.apache.avalon.phoenix.BlockListener;
-import org.apache.avalon.phoenix.metadata.SarMetaData;
import org.apache.avalon.phoenix.metadata.BlockMetaData;
+import org.apache.avalon.phoenix.metadata.SarMetaData;
/**
* Manage a set of <code>ApplicationListener</code> objects and propogate
@@ -108,20 +108,23 @@
int index = 0;
while( index < m_listeners.length )
{
- if( m_listeners[ index ] == listener ) break;
+ if( m_listeners[ index ] == listener )
+ {
+ break;
+ }
index++;
}
if( m_listeners.length != index )
{
- final ApplicationListener[] listeners = new ApplicationListener[
m_listeners.length - 1 ];
+ final ApplicationListener[] listeners =
+ new ApplicationListener[ m_listeners.length - 1 ];
System.arraycopy( m_listeners, 0, listeners, 0, index );
final int length = m_listeners.length - index - 1;
System.arraycopy( m_listeners, index + 1, listeners, index,
length );
}
}
-
/**
* Add a BlockListener to those requiring notification of
* <code>BlockEvent</code>s.
@@ -147,19 +150,22 @@
int index = 0;
while( index < m_blockListeners.length )
{
- if( m_blockListeners[ index ] == listener ) break;
+ if( m_blockListeners[ index ] == listener )
+ {
+ break;
+ }
index++;
}
if( m_blockListeners.length != index )
{
- final BlockListener[] listeners = new BlockListener[
m_blockListeners.length - 1 ];
+ final BlockListener[] listeners =
+ new BlockListener[ m_blockListeners.length - 1 ];
System.arraycopy( m_blockListeners, 0, listeners, 0, index );
final int length = m_blockListeners.length - index - 1;
System.arraycopy( m_blockListeners, index + 1, listeners, index,
length );
}
}
-
/**
* Notification that the application is starting
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>