Skip to content

Commit d336aa0

Browse files
committed
PDFBOX-5660: Sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1935102 13f79535-47bb-0310-9956-ffa450edef68
1 parent 886a346 commit d336aa0

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFCloneUtility.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ PDDocument getDestination()
7474
*
7575
* Expert use only, don’t use it if you don’t know exactly what you are doing.
7676
*
77-
* @param <TCOSBase> The type to be returned.
77+
* @param <TCOSBASE> The type to be returned.
7878
* @param base the initial object as the root of the deep-clone operation
7979
* @return the cloned instance of the base object
8080
* @throws IOException if an I/O error occurs
8181
*/
8282
@SuppressWarnings("unchecked")
83-
public <TCOSBase extends COSBase> TCOSBase cloneForNewDocument(TCOSBase base) throws IOException
83+
public <TCOSBASE extends COSBase> TCOSBASE cloneForNewDocument(TCOSBASE base) throws IOException
8484
{
8585
if (base == null)
8686
{
@@ -90,7 +90,7 @@ public <TCOSBase extends COSBase> TCOSBase cloneForNewDocument(TCOSBase base) th
9090
if (retval != null)
9191
{
9292
// we are done, it has already been converted.
93-
return (TCOSBase) retval;
93+
return (TCOSBASE) retval;
9494
}
9595
if (clonedValues.contains(base))
9696
{
@@ -100,7 +100,7 @@ public <TCOSBase extends COSBase> TCOSBase cloneForNewDocument(TCOSBase base) th
100100
retval = cloneCOSBaseForNewDocument(base);
101101
clonedVersion.put(base, retval);
102102
clonedValues.add(retval);
103-
return (TCOSBase) retval;
103+
return (TCOSBASE) retval;
104104
}
105105

106106
private COSBase cloneCOSBaseForNewDocument(COSBase base) throws IOException

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
* @author Benoit Guillon
5757
* @author Manuel Kasper
5858
*
59-
* @param <T_POLICY> the protection policy.
59+
* @param <TPOLICY> the protection policy.
6060
*/
61-
public abstract class SecurityHandler<T_POLICY extends ProtectionPolicy>
61+
public abstract class SecurityHandler<TPOLICY extends ProtectionPolicy>
6262
{
6363
private static final Logger LOG = LogManager.getLogger(SecurityHandler.class);
6464

@@ -94,7 +94,7 @@ public abstract class SecurityHandler<T_POLICY extends ProtectionPolicy>
9494
/**
9595
* The typed {@link ProtectionPolicy} to be used for encryption.
9696
*/
97-
private T_POLICY protectionPolicy = null;
97+
private TPOLICY protectionPolicy = null;
9898

9999
/**
100100
* The access permission granted to the current user for the document. These
@@ -124,7 +124,7 @@ protected SecurityHandler()
124124
*
125125
* @param protectionPolicy The protection policy.
126126
*/
127-
protected SecurityHandler(T_POLICY protectionPolicy)
127+
protected SecurityHandler(TPOLICY protectionPolicy)
128128
{
129129
this.protectionPolicy = protectionPolicy;
130130
keyLength = (short) protectionPolicy.getEncryptionKeyLength();
@@ -815,7 +815,7 @@ public boolean hasProtectionPolicy()
815815
*
816816
* @return The set {@link ProtectionPolicy}.
817817
*/
818-
protected T_POLICY getProtectionPolicy()
818+
protected TPOLICY getProtectionPolicy()
819819
{
820820
return protectionPolicy;
821821
}
@@ -824,7 +824,7 @@ protected T_POLICY getProtectionPolicy()
824824
* Sets the {@link ProtectionPolicy} to the given value.
825825
* @param protectionPolicy The {@link ProtectionPolicy}, that shall be set.
826826
*/
827-
protected void setProtectionPolicy(T_POLICY protectionPolicy)
827+
protected void setProtectionPolicy(TPOLICY protectionPolicy)
828828
{
829829
this.protectionPolicy = protectionPolicy;
830830
}

0 commit comments

Comments
 (0)