dont compare validity on equals

This commit is contained in:
Brian Matzon 2007-05-19 20:39:50 +00:00
parent d0956ea179
commit 325ad04c7e
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ public final class ALCcontext {
*/
public boolean equals(Object context) {
if(context instanceof ALCcontext) {
return ((ALCcontext)context).context == this.context && ((ALCcontext)context).valid == this.valid;
return ((ALCcontext)context).context == this.context;
}
return super.equals(context);
}

View file

@ -74,7 +74,7 @@ public final class ALCdevice {
*/
public boolean equals(Object device) {
if(device instanceof ALCdevice) {
return ((ALCdevice)device).device == this.device && ((ALCdevice)device).valid == this.valid;
return ((ALCdevice)device).device == this.device;
}
return super.equals(device);
}