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
* listener type.
*
* @param <T> the type of the listener interface
* @param listenerInterface the type of listener interface that will receive
* events posted using this class.
*
@ -213,8 +214,8 @@ public class EventListenerSupport<L> implements Serializable {
/**
* Serialize.
* @param objectOutputStream
* @throws IOException
* @param objectOutputStream the output stream
* @throws IOException if an IO error occurs
*/
private void writeObject(ObjectOutputStream objectOutputStream) throws IOException {
ArrayList<L> serializableListeners = new ArrayList<L>();
@ -239,9 +240,9 @@ public class EventListenerSupport<L> implements Serializable {
/**
* Deserialize.
* @param objectInputStream
* @throws IOException
* @throws ClassNotFoundException
* @param objectInputStream the input stream
* @throws IOException if an IO error occurs
* @throws ClassNotFoundException if the class cannot be resolved
*/
private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException {
@SuppressWarnings("unchecked")
@ -257,8 +258,8 @@ public class EventListenerSupport<L> implements Serializable {
/**
* Initialize transient fields.
* @param listenerInterface
* @param classLoader
* @param listenerInterface the class of the listener interface
* @param classLoader the class loader to be used
*/
private void initializeTransientFields(Class<L> listenerInterface, ClassLoader classLoader) {
@SuppressWarnings("unchecked")
@ -269,8 +270,8 @@ public class EventListenerSupport<L> implements Serializable {
/**
* Create the proxy object.
* @param listenerInterface
* @param classLoader
* @param listenerInterface the class of the listener interface
* @param classLoader the class loader to be used
*/
private void createProxy(Class<L> listenerInterface, ClassLoader 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
* 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 {
for (L listener : listeners) {