move compare method to AbstractBean
[jSite2.git] / src / net / pterodactylus / jsite / core / Request.java
index 703ba57..7b1bbe9 100644 (file)
@@ -21,7 +21,6 @@ package net.pterodactylus.jsite.core;
 
 
 import net.pterodactylus.util.beans.AbstractBean;
-import net.pterodactylus.util.beans.Comparer;
 
 /**
  * A request is an ongoing download or upload reported by the freenet node.
@@ -163,7 +162,7 @@ AbstractBean {
        public void setType(Type type) {
                Type oldType = this.type;
                this.type = type;
-               if (!Comparer.equal(oldType, type)) {
+               if (!equal(oldType, type)) {
                        firePropertyChange(PROPERTY_TYPE, oldType, type);
                }
        }
@@ -186,7 +185,7 @@ AbstractBean {
        public void setClientToken(String clientToken) {
                String oldClientToken = this.clientToken;
                this.clientToken = clientToken;
-               if (!Comparer.equal(oldClientToken, clientToken)) {
+               if (!equal(oldClientToken, clientToken)) {
                        firePropertyChange(PROPERTY_CLIENT_TOKEN, oldClientToken, clientToken);
                }
        }