Skip to content

Commit e2234cf

Browse files
authored
Fix spelling (#3967)
1 parent 1f8bb40 commit e2234cf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

log4j-1.2-api/src/main/java/org/apache/log4j/helpers/FileWatchdog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected void checkAndConfigure() {
6060
try {
6161
fileExists = file.exists();
6262
} catch (final SecurityException e) {
63-
LogLog.warn("Was not allowed to read check file existance, file:[" + filename + "].");
63+
LogLog.warn("Was not allowed to read check file existence, file:[" + filename + "].");
6464
interrupted = true; // there is no point in continuing
6565
return;
6666
}

log4j-1.2-api/src/main/java/org/apache/log4j/helpers/PatternParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public PatternConverter parse() {
188188
formattingInfo.max = c - '0';
189189
state = MAX_STATE;
190190
} else {
191-
LogLog.error("Error occured in position " + i + ".\n Was expecting digit, instead got char \""
191+
LogLog.error("Error occurred in position " + i + ".\n Was expecting digit, instead got char \""
192192
+ c + "\".");
193193
state = LITERAL_STATE;
194194
}
@@ -397,7 +397,7 @@ public String convert(final LoggingEvent event) {
397397
try {
398398
converted = df.format(date);
399399
} catch (Exception ex) {
400-
LogLog.error("Error occured while converting date.", ex);
400+
LogLog.error("Error occurred while converting date.", ex);
401401
}
402402
return converted;
403403
}

log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public String format(final long millis) {
451451

452452
/**
453453
* Creates a String representation of the given Calendar by applying the rules of this printer to it.
454-
* @param c the Calender to apply the rules to.
454+
* @param c the Calendar to apply the rules to.
455455
* @return a String representation of the given Calendar.
456456
*/
457457
private String applyRulesToString(final Calendar c) {

0 commit comments

Comments
 (0)