@@ -52,7 +52,6 @@ This file is part of the iText (R) project.
52
52
import com .itextpdf .kernel .pdf .PdfNumber ;
53
53
import com .itextpdf .kernel .pdf .PdfObject ;
54
54
import com .itextpdf .kernel .pdf .PdfString ;
55
- import com .itextpdf .kernel .pdf .function .AbstractPdfFunction ;
56
55
import com .itextpdf .kernel .pdf .function .IPdfFunction ;
57
56
import com .itextpdf .kernel .pdf .function .PdfFunction ;
58
57
import com .itextpdf .kernel .pdf .function .PdfFunctionFactory ;
@@ -155,7 +154,7 @@ public Separation(String name, PdfColorSpace alternateSpace, PdfFunction tintTra
155
154
*/
156
155
public Separation (String name , PdfColorSpace alternateSpace , IPdfFunction tintTransform ) {
157
156
this (new PdfName (name ), alternateSpace .getPdfObject (),
158
- (( AbstractPdfFunction < PdfDictionary >) tintTransform ). getPdfObject ());
157
+ tintTransform . getAsPdfObject ());
159
158
if (!tintTransform .checkCompatibilityWithColorSpace (alternateSpace )) {
160
159
throw new PdfException (
161
160
KernelExceptionMessageConstant .FUNCTION_IS_NOT_COMPATIBLE_WITH_COLOR_SPACE , this );
@@ -238,7 +237,7 @@ public DeviceN(List<String> names, PdfColorSpace alternateSpace, PdfFunction tin
238
237
*/
239
238
public DeviceN (List <String > names , PdfColorSpace alternateSpace , IPdfFunction tintTransform ) {
240
239
this (new PdfArray (names , true ), alternateSpace .getPdfObject (),
241
- (( AbstractPdfFunction < PdfDictionary >) tintTransform ). getPdfObject ());
240
+ tintTransform . getAsPdfObject ());
242
241
if (tintTransform .getInputSize () != numOfComponents ||
243
242
tintTransform .getOutputSize () != alternateSpace .getNumberOfComponents ()) {
244
243
throw new PdfException (
@@ -313,7 +312,7 @@ public NChannel(List<String> names, PdfColorSpace alternateSpace, PdfFunction ti
313
312
public NChannel (List <String > names , PdfColorSpace alternateSpace , IPdfFunction tintTransform ,
314
313
PdfDictionary attributes ) {
315
314
this (new PdfArray (names , true ), alternateSpace .getPdfObject (),
316
- (( AbstractPdfFunction < PdfDictionary >) tintTransform ). getPdfObject (), attributes );
315
+ tintTransform . getAsPdfObject (), attributes );
317
316
if (tintTransform .getInputSize () != 1 ||
318
317
tintTransform .getOutputSize () != alternateSpace .getNumberOfComponents ()) {
319
318
throw new PdfException (
0 commit comments