Replace 'e.g.' with 'for example' in documentation and comments

Closes gh-33515
This commit is contained in:
Yanming Zhou
2024-09-26 14:03:46 +02:00
committed by Sam Brannen
parent e55fe9077f
commit 8941e2876e
722 changed files with 1290 additions and 1290 deletions

View File

@@ -76,7 +76,7 @@ final class LogAdapter {
// java.logging module is not present by default on JDK 9. We are requiring
// its presence if neither Log4j nor SLF4J is available; however, in the
// case of Log4j or SLF4J, we are trying to prevent early initialization
// of the JavaUtilLog adapter - e.g. by a JVM in debug mode - when eagerly
// of the JavaUtilLog adapter - for example, by a JVM in debug mode - when eagerly
// trying to parse the bytecode for all the cases of this switch clause.
createLog = JavaUtilAdapter::createLog;
}

View File

@@ -38,7 +38,7 @@ package org.apache.commons.logging;
* <p><b>Note that this Commons Logging variant is only meant to be used for
* infrastructure logging purposes in the core framework and in extensions.</b>
* It also serves as a common bridge for third-party libraries using the
* Commons Logging API, e.g. Apache HttpClient, and HtmlUnit, bringing
* Commons Logging API, for example, Apache HttpClient, and HtmlUnit, bringing
* them into the same consistent arrangement without any extra bridge jars.
*
* <p><b>For logging need in application code, prefer direct use of Log4j 2.x
@@ -70,7 +70,7 @@ public abstract class LogFactory {
/**
* This method only exists for compatibility with unusual Commons Logging API
* usage like e.g. {@code LogFactory.getFactory().getInstance(Class/String)}.
* usage like, for example, {@code LogFactory.getFactory().getInstance(Class/String)}.
* @see #getInstance(Class)
* @see #getInstance(String)
* @deprecated in favor of {@link #getLog(Class)}/{@link #getLog(String)}

View File

@@ -4,7 +4,7 @@
* with special support for Log4J 2, SLF4J and {@code java.util.logging}.
*
* <p>This {@code impl} package is only present for binary compatibility
* with existing Commons Logging usage, e.g. in Commons Configuration.
* with existing Commons Logging usage, for example, in Commons Configuration.
* {@code NoOpLog} can be used as a {@code Log} fallback instance, and
* {@code SimpleLog} is not meant to work (issuing a warning when used).
*/