Skip to content

Commit 4928dcc

Browse files
Add private constгuctor to PdfCanvasConstants to prevent instantation
DEVSIX-4127
1 parent 8ab1436 commit 4928dcc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/canvas/PdfCanvasConstants.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ This file is part of the iText (R) project.
4848
*/
4949
public class PdfCanvasConstants {
5050

51+
private PdfCanvasConstants() {
52+
// This private constructor will prevent the instantiation of this class
53+
}
54+
5155
/**
5256
* The text rendering mode determines whether showing text causes glyph
5357
* outlines to be stroked, filled, used as a clipping boundary, or some
@@ -91,6 +95,9 @@ private TextRenderingMode() {}
9195
* 8.4.3.3 "Line Cap Style".
9296
*/
9397
public static class LineCapStyle {
98+
private LineCapStyle(){
99+
// This private constructor will prevent the instantiation of this class
100+
}
94101
/**
95102
* The stroke is squared of at the endpoint of the path. There is no
96103
* projection beyond the end of the path.
@@ -118,6 +125,9 @@ public static class LineCapStyle {
118125
* 8.4.3.4 "Line Join Style".
119126
*/
120127
public static class LineJoinStyle {
128+
private LineJoinStyle(){
129+
// This private constructor will prevent the instantiation of this class
130+
}
121131
/**
122132
* The outer edges of the strokes for the two segments are extended
123133
* until they meet at an angle, as in a picture frame. If the segments
@@ -140,6 +150,9 @@ public static class LineJoinStyle {
140150
}
141151

142152
public static class FillingRule {
153+
private FillingRule() {
154+
// This private constructor will prevent the instantiation of this class
155+
}
143156

144157
public static final int NONZERO_WINDING = 1;
145158

0 commit comments

Comments
 (0)