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 2019/12/14 04:23:31 UTC
svn commit: r1871364 - in /pdfbox/branches/issue4569:
fontbox/src/main/java/org/apache/fontbox/cff/
pdfbox/src/main/java/org/apache/pdfbox/cos/
pdfbox/src/main/java/org/apache/pdfbox/io/
pdfbox/src/main/java/org/apache/pdfbox/multipdf/ pdfbox/src/main/...
Author: tilman
Date: Sat Dec 14 04:23:31 2019
New Revision: 1871364
URL: http://svn.apache.org/viewvc?rev=1871364&view=rev
Log:
PDFBOX-4071: fix typo found by codespell on fossies.org
Modified:
pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/cff/DataInput.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/io/IOUtils.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/COSFilterInputStream.java
pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/ExternalSigningSupport.java
pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestMetadataFiles.java
Modified: pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/cff/DataInput.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/cff/DataInput.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/cff/DataInput.java (original)
+++ pdfbox/branches/issue4569/fontbox/src/main/java/org/apache/fontbox/cff/DataInput.java Sat Dec 14 04:23:31 2019
@@ -97,7 +97,7 @@ public class DataInput
}
catch (RuntimeException re)
{
- LOG.debug("An error occured reading a byte - returning -1", re);
+ LOG.debug("An error occurred reading a byte - returning -1", re);
return -1;
}
}
@@ -204,7 +204,7 @@ public class DataInput
}
catch (RuntimeException re)
{
- LOG.debug("An error occured reading an int - returning -1", re);
+ LOG.debug("An error occurred reading an int - returning -1", re);
return -1;
}
}
@@ -217,7 +217,7 @@ public class DataInput
}
catch (RuntimeException re)
{
- LOG.debug("An error occured peeking at offset " + offset + " - returning -1", re);
+ LOG.debug("An error occurred peeking at offset " + offset + " - returning -1", re);
return -1;
}
}
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDictionary.java Sat Dec 14 04:23:31 2019
@@ -1521,7 +1521,7 @@ public class COSDictionary extends COSBa
}
catch (IOException e)
{
- LOG.debug("An exception occured trying - returning error message instead", e);
+ LOG.debug("An exception occurred trying - returning error message instead", e);
return "COSDictionary{" + e.getMessage() + "}";
}
}
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java Sat Dec 14 04:23:31 2019
@@ -463,7 +463,7 @@ public class COSDocument extends COSBase
// - first Exception is kept
// - all COSStreams are closed
// - ScratchFile is closed
- // - there's a way to see which errors occured
+ // - there's a way to see which errors occurred
IOException firstException = null;
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java Sat Dec 14 04:23:31 2019
@@ -384,7 +384,7 @@ public class COSStream extends COSDictio
}
catch (IOException e)
{
- LOG.debug("An exception occured trying to get the content - returning empty string instead", e);
+ LOG.debug("An exception occurred trying to get the content - returning empty string instead", e);
return "";
}
finally
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/io/IOUtils.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/io/IOUtils.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/io/IOUtils.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/io/IOUtils.java Sat Dec 14 04:23:31 2019
@@ -120,7 +120,7 @@ public final class IOUtils
}
catch (IOException ioe)
{
- LOG.debug("An exception occured while trying to close - ignoring", ioe);
+ LOG.debug("An exception occurred while trying to close - ignoring", ioe);
// ignore
}
}
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java Sat Dec 14 04:23:31 2019
@@ -433,7 +433,7 @@ public class PDFMergerUtility
// - first Exception is kept
// - all PDDocuments are closed
// - all FileInputStreams are closed
- // - there's a way to see which errors occured
+ // - there's a way to see which errors occurred
List<PDDocument> tobeclosed = new ArrayList<>();
MemoryUsageSetting partitionedMemSetting = memUsageSetting != null ?
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java Sat Dec 14 04:23:31 2019
@@ -1522,7 +1522,7 @@ public class COSParser extends BaseParse
}
catch (IOException exception)
{
- LOG.debug("An exception occured during brute force search for trailer - ignoring", exception);
+ LOG.debug("An exception occurred during brute force search for trailer - ignoring", exception);
continue;
}
}
@@ -1635,7 +1635,7 @@ public class COSParser extends BaseParse
catch (IOException exception)
{
// save the EOF marker as the following data is most likely some garbage
- LOG.debug("An exception occured during brute force for last EOF - ignoring",
+ LOG.debug("An exception occurred during brute force for last EOF - ignoring",
exception);
lastEOFMarker = tempMarker;
}
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Sat Dec 14 04:23:31 2019
@@ -1086,7 +1086,7 @@ public class PDDocument implements Close
// Make sure that:
// - first Exception is kept
// - all IO resources are closed
- // - there's a way to see which errors occured
+ // - there's a way to see which errors occurred
IOException firstException = null;
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SecurityHandler.java Sat Dec 14 04:23:31 2019
@@ -338,7 +338,7 @@ public abstract class SecurityHandler
{
throw exception;
}
- LOG.debug("A GeneralSecurityException occured when decrypting some stream data", exception);
+ LOG.debug("A GeneralSecurityException occurred when decrypting some stream data", exception);
}
}
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/COSFilterInputStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/COSFilterInputStream.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/COSFilterInputStream.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/COSFilterInputStream.java Sat Dec 14 04:23:31 2019
@@ -99,7 +99,7 @@ public class COSFilterInputStream extend
}
catch (IOException ee)
{
- LOG.debug("An exception occured while trying to fill byte[] - ignoring", ee);
+ LOG.debug("An exception occurred while trying to fill byte[] - ignoring", ee);
}
return i;
}
Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/ExternalSigningSupport.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/ExternalSigningSupport.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/ExternalSigningSupport.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/ExternalSigningSupport.java Sat Dec 14 04:23:31 2019
@@ -38,7 +38,7 @@ public interface ExternalSigningSupport
*
* @param signature CMS signature as byte array
*
- * @throws IOException if exception occured during PDF writing
+ * @throws IOException if exception occurred during PDF writing
*/
void setSignature(byte[] signature) throws IOException;
}
Modified: pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestMetadataFiles.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestMetadataFiles.java?rev=1871364&r1=1871363&r2=1871364&view=diff
==============================================================================
--- pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestMetadataFiles.java (original)
+++ pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestMetadataFiles.java Sat Dec 14 04:23:31 2019
@@ -86,7 +86,7 @@ public class TestMetadataFiles
}
catch (IOException e)
{
- fail("An exception occured while parsing the PDF " + pdf + ": " + e);
+ fail("An exception occurred while parsing the PDF " + pdf + ": " + e);
}
if (result != null)
{