Skip to content

Commit 8629cd9

Browse files
committed
PDFBOX-5952: remove short constructor, use the long one
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923779 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2af67b8 commit 8629cd9

File tree

6 files changed

+4
-36
lines changed

6 files changed

+4
-36
lines changed

debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSDeviceN.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class CSDeviceN
5151
*/
5252
public CSDeviceN(COSArray array) throws IOException
5353
{
54-
deviceN = new PDDeviceN(array);
54+
deviceN = new PDDeviceN(array, null);
5555
DeviceNColorant[] colorants = getColorantData();
5656
initUI(colorants);
5757
}

debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSSeparation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class CSSeparation implements ChangeListener, ActionListener
6363
*/
6464
public CSSeparation(COSArray array) throws IOException
6565
{
66-
separation = new PDSeparation(array);
66+
separation = new PDSeparation(array, null);
6767
initUI();
6868
initValues();
6969
}

examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateSeparationColorBox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static void main(String[] args) throws IOException
8383
PDFunctionType2 func = new PDFunctionType2(fdict);
8484
separationArray.add(func);
8585

86-
PDColorSpace spotColorSpace = new PDSeparation(separationArray);
86+
PDColorSpace spotColorSpace = new PDSeparation(separationArray, null);
8787

8888
try (PDPageContentStream cs = new PDPageContentStream(doc, page))
8989
{

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceN.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,6 @@ public PDDeviceN(COSArray deviceN, PDResources resources) throws IOException
107107
initialColor = new PDColor(initial, this);
108108
}
109109

110-
/**
111-
* Creates a new DeviceN color space from the given COS array.
112-
*
113-
* @param deviceN an array containing the color space information
114-
*
115-
* @throws IOException if the colorspace could not be created
116-
*/
117-
public PDDeviceN(COSArray deviceN) throws IOException
118-
{
119-
this(deviceN, null);
120-
}
121-
122110
// initializes the color conversion cache
123111
private void initColorConversionCache(PDResources resources) throws IOException
124112
{

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceNAttributes.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,6 @@ public Map<String, PDSeparation> getColorants(PDResources resources) throws IOEx
9797
return new COSDictionaryMap<>(actuals, colorants);
9898
}
9999

100-
/**
101-
* Returns a map of colorants and their associated Separation color space.
102-
* @return map of colorants to color spaces, never null.
103-
* @throws IOException If there is an error reading a color space
104-
*/
105-
public Map<String, PDSeparation> getColorants() throws IOException
106-
{
107-
return getColorants(null);
108-
}
109-
110100
/**
111101
* Returns the DeviceN Process Dictionary, or null if it is missing.
112102
* @return the DeviceN Process Dictionary, or null if it is missing.
@@ -159,7 +149,7 @@ public String toString()
159149
Map<String, PDSeparation> colorants;
160150
try
161151
{
162-
colorants = getColorants();
152+
colorants = getColorants(null);
163153
sb.append("Colorants{");
164154
for (Map.Entry<String, PDSeparation> col : colorants.entrySet())
165155
{

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,6 @@ public PDSeparation(COSArray separation, PDResources resources) throws IOExcepti
9797
}
9898
}
9999

100-
/**
101-
* Creates a new Separation color space from a PDF color space array.
102-
* @param separation an array containing all separation information.
103-
* @throws IOException if the color space or the function could not be created.
104-
*/
105-
public PDSeparation(COSArray separation) throws IOException
106-
{
107-
this(separation, null);
108-
}
109-
110100
@Override
111101
public String getName()
112102
{

0 commit comments

Comments
 (0)