Just take a look at their "Rectangle" class implementation of "contains":
Guess what type of method "inside" is?
A deprecated one.
What a dumbfounding situation. The Javadoc mentions to use "contains" and not "inside".
Code:
/**
* Checks whether or not this <code>Rectangle</code> contains the
* point at the specified location {@code (x,y)}.
*
* @param x the specified X coordinate
* @param y the specified Y coordinate
* @return <code>true</code> if the point
* {@code (x,y)} is inside this
* <code>Rectangle</code>;
* <code>false</code> otherwise.
* @since 1.1
*/
public boolean contains(int x, int y) {
return inside(x, y);
}
Guess what type of method "inside" is?
A deprecated one.
What a dumbfounding situation. The Javadoc mentions to use "contains" and not "inside".