Browse Source

Revised description of event source parameter

Issue: SPR-13021
pull/763/merge
Juergen Hoeller 11 years ago
parent
commit
ef7cf2c650
  1. 4
      spring-context/src/main/java/org/springframework/context/ApplicationEvent.java
  2. 4
      spring-context/src/main/java/org/springframework/context/PayloadApplicationEvent.java

4
spring-context/src/main/java/org/springframework/context/ApplicationEvent.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2012 the original author or authors. * Copyright 2002-2015 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -36,7 +36,7 @@ public abstract class ApplicationEvent extends EventObject {
/** /**
* Create a new ApplicationEvent. * Create a new ApplicationEvent.
* @param source the component that published the event (never {@code null}) * @param source the object on which the event initially occurred (never {@code null})
*/ */
public ApplicationEvent(Object source) { public ApplicationEvent(Object source) {
super(source); super(source);

4
spring-context/src/main/java/org/springframework/context/PayloadApplicationEvent.java

@ -35,8 +35,8 @@ public class PayloadApplicationEvent<T> extends ApplicationEvent {
/** /**
* Create a new PayloadApplicationEvent. * Create a new PayloadApplicationEvent.
* @param source the component that published the event (never {@code null}) * @param source the object on which the event initially occurred (never {@code null})
* @param payload the payload object * @param payload the payload object (never {@code null})
*/ */
public PayloadApplicationEvent(Object source, T payload) { public PayloadApplicationEvent(Object source, T payload) {
super(source); super(source);

Loading…
Cancel
Save