You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2016/02/11 18:04:35 UTC
svn commit: r1729863 -
/pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java
Author: tilman
Date: Thu Feb 11 17:04:35 2016
New Revision: 1729863
URL: http://svn.apache.org/viewvc?rev=1729863&view=rev
Log:
PDFBOX-3024: add method to empty font ccontainer map; code cleanup
Modified:
pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java
Modified: pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java?rev=1729863&r1=1729862&r2=1729863&view=diff
==============================================================================
--- pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java (original)
+++ pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java Thu Feb 11 17:04:35 2016
@@ -176,7 +176,7 @@ public class PreflightContext implements
/**
* Add a FontContainer to allow TextObject validation.
*
- * @param fKey
+ * @param cBase
* @param fc
*/
public void addFontContainer(COSBase cBase, FontContainer fc)
@@ -188,7 +188,7 @@ public class PreflightContext implements
* Return the FontContainer identified by the COSBase. If the given object is missing from the
* {@link #fontContainers} map, the null value is returned.
*
- * @param fKey
+ * @param cBase
* @return
*/
public FontContainer getFontContainer(COSBase cBase)
@@ -197,6 +197,14 @@ public class PreflightContext implements
}
/**
+ * Empty the font container map.
+ */
+ public void clearFontContainers()
+ {
+ this.fontContainers.clear();
+ }
+
+ /**
* @return the iccProfileWrapper
*/
public ICCProfileWrapper getIccProfileWrapper()
@@ -238,7 +246,7 @@ public class PreflightContext implements
*/
public void addValidationError(ValidationError error)
{
- PreflightDocument document = (PreflightDocument) this.document;
+ PreflightDocument document = this.document;
document.addValidationError(error);
}
@@ -249,7 +257,7 @@ public class PreflightContext implements
*/
public void addValidationErrors(List<ValidationError> errors)
{
- PreflightDocument document = (PreflightDocument) this.document;
+ PreflightDocument document = this.document;
for (ValidationError error : errors)
{
document.addValidationError(error);