You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2024/09/17 17:19:41 UTC
svn commit: r1920757 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/IntPoint.java
Author: lehmi
Date: Tue Sep 17 17:19:40 2024
New Revision: 1920757
URL: http://svn.apache.org/viewvc?rev=1920757&view=rev
Log:
PDFBOX-5852: deprecate IntPoint
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/IntPoint.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/IntPoint.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/IntPoint.java?rev=1920757&r1=1920756&r2=1920757&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/IntPoint.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/shading/IntPoint.java Tue Sep 17 17:19:40 2024
@@ -23,13 +23,15 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
- * Point class with faster hashCode() to speed up the rendering of Gouraud shadings. Should only be
- * used for maps or sets when all elements are of this type, because the hashCode() method violates
- * its general contract "If two objects are equal according to the equals(Object) method, then
- * calling the hashCode method on each of the two objects must produce the same" when IntPoint is
- * mixed with Point, because IntPoint(x,y) would have a different hashCode than Point(x,y).
+ * Point class with faster hashCode() to speed up the rendering of Gouraud shadings. Should only be used for maps or
+ * sets when all elements are of this type, because the hashCode() method violates its general contract "If two objects
+ * are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must
+ * produce the same" when IntPoint is mixed with Point, because IntPoint(x,y) would have a different hashCode than
+ * Point(x,y).
*
* @author Tilman Hausherr
+ *
+ * @deprecated the map in question was replaced with an array, so that this class is no longer needed
*/
class IntPoint extends Point
{