This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new e2234cf3c8 Fix spelling (#3967)
e2234cf3c8 is described below
commit e2234cf3c85161e735bb171acba07556093b7888
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 31 15:03:29 2025 -0400
Fix spelling (#3967)
---
.../src/main/java/org/apache/log4j/helpers/FileWatchdog.java | 2 +-
.../src/main/java/org/apache/log4j/helpers/PatternParser.java | 4 ++--
.../org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/log4j-1.2-api/src/main/java/org/apache/log4j/helpers/FileWatchdog.java
b/log4j-1.2-api/src/main/java/org/apache/log4j/helpers/FileWatchdog.java
index a43776bed7..ecf686faf4 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/helpers/FileWatchdog.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/helpers/FileWatchdog.java
@@ -60,7 +60,7 @@ public abstract class FileWatchdog extends Thread {
try {
fileExists = file.exists();
} catch (final SecurityException e) {
- LogLog.warn("Was not allowed to read check file existance, file:["
+ filename + "].");
+ LogLog.warn("Was not allowed to read check file existence, file:["
+ filename + "].");
interrupted = true; // there is no point in continuing
return;
}
diff --git
a/log4j-1.2-api/src/main/java/org/apache/log4j/helpers/PatternParser.java
b/log4j-1.2-api/src/main/java/org/apache/log4j/helpers/PatternParser.java
index 36c1c79dcb..1af7fdbf22 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/helpers/PatternParser.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/helpers/PatternParser.java
@@ -188,7 +188,7 @@ public class PatternParser {
formattingInfo.max = c - '0';
state = MAX_STATE;
} else {
- LogLog.error("Error occured in position " + i + ".\n
Was expecting digit, instead got char \""
+ LogLog.error("Error occurred in position " + i + ".\n
Was expecting digit, instead got char \""
+ c + "\".");
state = LITERAL_STATE;
}
@@ -397,7 +397,7 @@ public class PatternParser {
try {
converted = df.format(date);
} catch (Exception ex) {
- LogLog.error("Error occured while converting date.", ex);
+ LogLog.error("Error occurred while converting date.", ex);
}
return converted;
}
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java
index f4df3ebfa0..7e6f426f51 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java
@@ -451,7 +451,7 @@ public class FastDatePrinter implements DatePrinter,
Serializable {
/**
* Creates a String representation of the given Calendar by applying the
rules of this printer to it.
- * @param c the Calender to apply the rules to.
+ * @param c the Calendar to apply the rules to.
* @return a String representation of the given Calendar.
*/
private String applyRulesToString(final Calendar c) {