Skip to content

Commit 61105fd

Browse files
committed
PDFBOX-5660: Sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924933 13f79535-47bb-0310-9956-ffa450edef68
1 parent 12e7ca8 commit 61105fd

File tree

16 files changed

+26
-29
lines changed

16 files changed

+26
-29
lines changed

examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignatureBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public abstract class CreateSignatureBase implements SignatureInterface
6161
* @throws CertificateException if the certificate is not valid as signing time
6262
* @throws IOException if no certificate could be found
6363
*/
64-
public CreateSignatureBase(KeyStore keystore, char[] pin)
64+
protected CreateSignatureBase(KeyStore keystore, char[] pin)
6565
throws KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException, IOException, CertificateException
6666
{
6767
// grabs the first alias from the keystore and get the private key. An

fontbox/src/main/java/org/apache/fontbox/ttf/table/common/CoverageTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public abstract class CoverageTable
2929
{
3030
private final int coverageFormat;
3131

32-
public CoverageTable(int coverageFormat)
32+
protected CoverageTable(int coverageFormat)
3333
{
3434
this.coverageFormat = coverageFormat;
3535
}

fontbox/src/main/java/org/apache/fontbox/ttf/table/common/LookupSubTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public abstract class LookupSubTable
3030
private final int substFormat;
3131
private final CoverageTable coverageTable;
3232

33-
public LookupSubTable(int substFormat, CoverageTable coverageTable)
33+
protected LookupSubTable(int substFormat, CoverageTable coverageTable)
3434
{
3535
this.substFormat = substFormat;
3636
this.coverageTable = coverageTable;

pdfbox/src/main/java/org/apache/pdfbox/cos/COSBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public abstract class COSBase implements COSObjectable
3434
/**
3535
* Constructor.
3636
*/
37-
public COSBase()
37+
protected COSBase()
3838
{
3939
}
4040

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/filespecification/PDEmbeddedFile.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ public PDEmbeddedFile( PDDocument doc, InputStream str ) throws IOException
6262

6363
/**
6464
* {@inheritDoc}
65-
* @param filter Filter to apply to the stream.
66-
*
67-
* @throws IOException {@inheritDoc}
6865
*/
6966
public PDEmbeddedFile(PDDocument doc, InputStream input, COSName filter) throws IOException
7067
{

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public abstract class PDFunction implements COSObjectable
5050
* @param function The function stream.
5151
*
5252
*/
53-
public PDFunction( COSBase function )
53+
protected PDFunction( COSBase function )
5454
{
5555
if (function instanceof COSStream)
5656
{

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDAttributeObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public abstract class PDAttributeObject extends PDDictionaryWrapper
4040
/**
4141
* Default constructor.
4242
*/
43-
public PDAttributeObject()
43+
protected PDAttributeObject()
4444
{
4545
}
4646

@@ -49,7 +49,7 @@ public PDAttributeObject()
4949
*
5050
* @param dictionary the dictionary
5151
*/
52-
public PDAttributeObject(COSDictionary dictionary)
52+
protected PDAttributeObject(COSDictionary dictionary)
5353
{
5454
super(dictionary);
5555
}

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/taggedpdf/PDStandardAttributeObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public abstract class PDStandardAttributeObject extends PDAttributeObject
4141
/**
4242
* Default constructor.
4343
*/
44-
public PDStandardAttributeObject()
44+
protected PDStandardAttributeObject()
4545
{
4646
}
4747

@@ -50,7 +50,7 @@ public PDStandardAttributeObject()
5050
*
5151
* @param dictionary the dictionary
5252
*/
53-
public PDStandardAttributeObject(COSDictionary dictionary)
53+
protected PDStandardAttributeObject(COSDictionary dictionary)
5454
{
5555
super(dictionary);
5656
}

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public abstract class FDFAnnotation implements COSObjectable
104104
/**
105105
* Default constructor.
106106
*/
107-
public FDFAnnotation()
107+
protected FDFAnnotation()
108108
{
109109
annot = new COSDictionary();
110110
annot.setItem(COSName.TYPE, COSName.ANNOT);
@@ -115,7 +115,7 @@ public FDFAnnotation()
115115
*
116116
* @param a The FDF annotation.
117117
*/
118-
public FDFAnnotation(COSDictionary a)
118+
protected FDFAnnotation(COSDictionary a)
119119
{
120120
annot = a;
121121
}
@@ -127,7 +127,7 @@ public FDFAnnotation(COSDictionary a)
127127
*
128128
* @throws IOException If there is an error extracting data from the element.
129129
*/
130-
public FDFAnnotation(Element element) throws IOException
130+
protected FDFAnnotation(Element element) throws IOException
131131
{
132132
this();
133133

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationTextMarkup.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,16 @@ public abstract class FDFAnnotationTextMarkup extends FDFAnnotation
3333
/**
3434
* Default constructor.
3535
*/
36-
public FDFAnnotationTextMarkup()
36+
protected FDFAnnotationTextMarkup()
3737
{
38-
super();
3938
}
4039

4140
/**
4241
* Constructor.
4342
*
4443
* @param a An existing FDF Annotation.
4544
*/
46-
public FDFAnnotationTextMarkup(COSDictionary a)
45+
protected FDFAnnotationTextMarkup(COSDictionary a)
4746
{
4847
super(a);
4948
}

0 commit comments

Comments
 (0)