Reverted method def change

This commit is contained in:
Ziver Koc 2016-07-25 17:34:42 +02:00
parent cbca0c42c4
commit 6dd2210be1

View file

@ -171,10 +171,8 @@ public class Configurator<T> {
* been configured if it implements the PreConfigurationActionListener interface.
* The postConfigurationAction() method will be called after the target object is
* configured if it implements the PostConfigurationActionListener interface.
*
* @return a reference to itself so that metodcalls can be chained.
*/
public Configurator<T> applyConfiguration(){
public void applyConfiguration(){
if(preListener != null)
preListener.preConfigurationAction(this, obj);
if(obj instanceof PreConfigurationActionListener)
@ -203,8 +201,6 @@ public class Configurator<T> {
((PostConfigurationActionListener<T>) obj).postConfigurationAction(this, obj);
if(postListener != null)
postListener.postConfigurationAction(this, obj);
return this;
}