Checkstyle and trailing spaces.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1082302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oliver Heger 2011-03-16 21:08:27 +00:00
parent 68cf378ea3
commit f241657448
1 changed files with 37 additions and 34 deletions

View File

@ -90,6 +90,7 @@ public class EventListenerSupport<L> implements Serializable {
* Creates an EventListenerSupport object which supports the specified * Creates an EventListenerSupport object which supports the specified
* listener type. * listener type.
* *
* @param <T> the type of the listener interface
* @param listenerInterface the type of listener interface that will receive * @param listenerInterface the type of listener interface that will receive
* events posted using this class. * events posted using this class.
* *
@ -213,8 +214,8 @@ public class EventListenerSupport<L> implements Serializable {
/** /**
* Serialize. * Serialize.
* @param objectOutputStream * @param objectOutputStream the output stream
* @throws IOException * @throws IOException if an IO error occurs
*/ */
private void writeObject(ObjectOutputStream objectOutputStream) throws IOException { private void writeObject(ObjectOutputStream objectOutputStream) throws IOException {
ArrayList<L> serializableListeners = new ArrayList<L>(); ArrayList<L> serializableListeners = new ArrayList<L>();
@ -239,9 +240,9 @@ public class EventListenerSupport<L> implements Serializable {
/** /**
* Deserialize. * Deserialize.
* @param objectInputStream * @param objectInputStream the input stream
* @throws IOException * @throws IOException if an IO error occurs
* @throws ClassNotFoundException * @throws ClassNotFoundException if the class cannot be resolved
*/ */
private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException { private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -257,8 +258,8 @@ public class EventListenerSupport<L> implements Serializable {
/** /**
* Initialize transient fields. * Initialize transient fields.
* @param listenerInterface * @param listenerInterface the class of the listener interface
* @param classLoader * @param classLoader the class loader to be used
*/ */
private void initializeTransientFields(Class<L> listenerInterface, ClassLoader classLoader) { private void initializeTransientFields(Class<L> listenerInterface, ClassLoader classLoader) {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -269,8 +270,8 @@ public class EventListenerSupport<L> implements Serializable {
/** /**
* Create the proxy object. * Create the proxy object.
* @param listenerInterface * @param listenerInterface the class of the listener interface
* @param classLoader * @param classLoader the class loader to be used
*/ */
private void createProxy(Class<L> listenerInterface, ClassLoader classLoader) { private void createProxy(Class<L> listenerInterface, ClassLoader classLoader) {
proxy = listenerInterface.cast(Proxy.newProxyInstance(classLoader, proxy = listenerInterface.cast(Proxy.newProxyInstance(classLoader,
@ -302,6 +303,8 @@ public class EventListenerSupport<L> implements Serializable {
* @param method the listener method that will be called on all of the * @param method the listener method that will be called on all of the
* listeners. * listeners.
* @param args event arguments to propagate to the listeners. * @param args event arguments to propagate to the listeners.
* @return the result of the method call
* @throws Throwable if an error occurs
*/ */
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
for (L listener : listeners) { for (L listener : listeners) {