Fix using the wrong base type.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 12 Sep 2012 05:45:48 +0000 (07:45 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 12 Sep 2012 05:45:48 +0000 (07:45 +0200)
src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java

index cb73297..56716d6 100644 (file)
@@ -684,8 +684,8 @@ public class WebOfTrustUpdater extends AbstractService {
                        if ((object == null) || !object.getClass().equals(getClass())) {
                                return false;
                        }
-                       WebOfTrustContextUpdateJob updateJob = (WebOfTrustContextUpdateJob) object;
-                       return updateJob.ownIdentity.equals(ownIdentity) && updateJob.context.equals(propertyName);
+                       WebOfTrustPropertyUpdateJob updateJob = (WebOfTrustPropertyUpdateJob) object;
+                       return updateJob.ownIdentity.equals(ownIdentity) && updateJob.propertyName.equals(propertyName);
                }
 
                /**