Skip to content

Commit

Permalink
use correct type in equals
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Jan 3, 2024
1 parent cd24a65 commit f3e4510
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/*
* org.openmicroscopy.shoola.util.math.geom2D.PlanePoint2D
*
*------------------------------------------------------------------------------
* Copyright (C) 2006-2007 University of Dundee. All rights reserved.
* Copyright (C) 2006-2024 University of Dundee. All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -231,8 +229,8 @@ public double angle(PlanePoint2D vec)
*/
public boolean equals(Object o)
{
if (o == null || (!(o instanceof PlanePoint))) return false;
PlanePoint other = (PlanePoint) o;
if (o == null || (!(o instanceof PlanePoint2D))) return false;
PlanePoint2D other = (PlanePoint2D) o;
return (x1 == other.x1 && x2 == other.x2);
}

Expand Down

0 comments on commit f3e4510

Please sign in to comment.