You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/12/15 18:56:16 UTC
svn commit: r1871605 -
/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java
Author: tilman
Date: Sun Dec 15 18:56:16 2019
New Revision: 1871605
URL: http://svn.apache.org/viewvc?rev=1871605&view=rev
Log:
PDFBOX-4710: align deprecations so that those with (int) are all deprecated
Modified:
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java?rev=1871605&r1=1871604&r2=1871605&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java Sun Dec 15 18:56:16 2019
@@ -722,8 +722,10 @@ abstract class PDAbstractContentStream i
* @param b The blue value.
* @throws IOException If an IO error occurs while writing to the stream.
* @throws IllegalArgumentException If the parameters are invalid.
- * @see #setStrokingColor(float, float, float) setStrokingColor(r/255f, g/255f, b/255f)
+ * @deprecated use
+ * {@link #setStrokingColor(float, float, float) setStrokingColor(r/255f, g/255f, b/255f)}
*/
+ @Deprecated
public void setStrokingColor(int r, int g, int b) throws IOException
{
if (isOutside255Interval(r) || isOutside255Interval(g) || isOutside255Interval(b))
@@ -861,8 +863,10 @@ abstract class PDAbstractContentStream i
* @param b The blue value.
* @throws IOException If an IO error occurs while writing to the stream.
* @throws IllegalArgumentException If the parameters are invalid.
- * @see #setNonStrokingColor(float, float, float) setNonStrokingColor(r/255f, g/255f, b/255f)
+ * @deprecated use
+ * {@link #setNonStrokingColor(float, float, float) setNonStrokingColor(r/255f, g/255f, b/255f)}
*/
+ @Deprecated
public void setNonStrokingColor(int r, int g, int b) throws IOException
{
if (isOutside255Interval(r) || isOutside255Interval(g) || isOutside255Interval(b))
@@ -923,6 +927,7 @@ abstract class PDAbstractContentStream i
* @param g The gray value.
* @throws IOException If an IO error occurs while writing to the stream.
* @throws IllegalArgumentException If the parameter is invalid.
+ * @deprecated use {@link #setNonStrokingColor(float) setNonStrokingColor(g/255f)}
*/
public void setNonStrokingColor(int g) throws IOException
{