X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Fbeans%2FAbstractBean.java;h=7200324dfc9158c60a129f85a7a44054752b4add;hb=c63257e8cc0ba1a5aca9364b22171abe7279d479;hp=b586353cf9b51fed6ed47374ccfebed796b8d581;hpb=416469c4cb7d9ce820c3b2c0bdfeb2077f994042;p=jSite2.git diff --git a/src/net/pterodactylus/util/beans/AbstractBean.java b/src/net/pterodactylus/util/beans/AbstractBean.java index b586353..7200324 100644 --- a/src/net/pterodactylus/util/beans/AbstractBean.java +++ b/src/net/pterodactylus/util/beans/AbstractBean.java @@ -27,9 +27,8 @@ import java.util.List; /** * Abstract bean super class that contains property change listener management. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ public abstract class AbstractBean { @@ -38,7 +37,7 @@ public abstract class AbstractBean { /** * Adds a property change listener. - * + * * @param propertyChangeListener * The property change listener to add */ @@ -48,7 +47,7 @@ public abstract class AbstractBean { /** * Removes a property change listener. - * + * * @param propertyChangeListener * The property change listener to remove */ @@ -58,7 +57,7 @@ public abstract class AbstractBean { /** * Notifies all listeners that a property has changed. - * + * * @param property * The name of the property * @param oldValue @@ -68,7 +67,7 @@ public abstract class AbstractBean { */ protected void firePropertyChange(String property, Object oldValue, Object newValue) { PropertyChangeEvent propertyChangeEvent = new PropertyChangeEvent(this, property, oldValue, newValue); - for (PropertyChangeListener propertyChangeListener: propertyChangeListeners) { + for (PropertyChangeListener propertyChangeListener : propertyChangeListeners) { propertyChangeListener.propertyChange(propertyChangeEvent); } @@ -76,7 +75,7 @@ public abstract class AbstractBean { /** * Fires a property change event if the two values are not equal. - * + * * @param propertyName * The name of the property * @param oldValue @@ -98,7 +97,7 @@ public abstract class AbstractBean { * Compares the two objects and returns whether they are equal according to * {@link Object#equals(Object)}. This method takes null * into account as a valid value for an object. - * + * * @param first * The first object * @param second