This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new b251bcb Fixing typos in docs. (#465)
b251bcb is described below
commit b251bcbe8fd9998e394cfd1708cd93756235640d
Author: Robert Taylor <[email protected]>
AuthorDate: Tue Feb 16 20:54:42 2021 +0000
Fixing typos in docs. (#465)
---
.../src/main/java/org/apache/log4j/bridge/LogEventAdapter.java | 2 +-
log4j-1.2-api/src/main/java/org/apache/log4j/spi/ErrorHandler.java | 2 +-
.../java/org/apache/logging/log4j/message/StructuredDataMessage.java | 2 +-
.../src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java | 2 +-
log4j-api/src/main/java/org/apache/logging/log4j/util/Timer.java | 2 +-
.../java/org/apache/logging/log4j/core/appender/AbstractManager.java | 2 +-
.../org/apache/logging/log4j/core/appender/OutputStreamManager.java | 2 +-
.../log4j/core/appender/rolling/action/AbstractPathAction.java | 2 +-
.../src/main/java/org/apache/logging/log4j/core/util/Loader.java | 4 ++--
.../main/java/org/apache/logging/log4j/core/util/ReflectionUtil.java | 1 +
.../apache/logging/log4j/core/appender/ReconfigureAppenderTest.java | 2 +-
log4j-liquibase/src/site/markdown/index.md | 2 +-
src/site/asciidoc/manual/json-template-layout.vm.adoc | 2 +-
13 files changed, 14 insertions(+), 13 deletions(-)
diff --git
a/log4j-1.2-api/src/main/java/org/apache/log4j/bridge/LogEventAdapter.java
b/log4j-1.2-api/src/main/java/org/apache/log4j/bridge/LogEventAdapter.java
index 62b7609..a91fd98 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/bridge/LogEventAdapter.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/bridge/LogEventAdapter.java
@@ -153,7 +153,7 @@ public class LogEventAdapter extends LoggingEvent {
}
/*
- Returns the the context corresponding to the <code>key</code> parameter.
+ Returns the context corresponding to the <code>key</code> parameter.
*/
@Override
public Object getMDC(String key) {
diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/ErrorHandler.java
b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/ErrorHandler.java
index 2e64103..f3b11f9 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/ErrorHandler.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/ErrorHandler.java
@@ -49,7 +49,7 @@ public interface ErrorHandler {
/**
* Equivalent to the {@link #error(String, Exception, int,
- * LoggingEvent)} with the the event parameter set to
+ * LoggingEvent)} with the event parameter set to
* <code>null</code>.
*
* @param message The message associated with the error.
diff --git
a/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
b/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
index 0ecf77d..2980ab5 100644
---
a/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
+++
b/log4j-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
@@ -373,7 +373,7 @@ public class StructuredDataMessage extends
MapMessage<StructuredDataMessage, Str
}
/**
- * Formats the message according the the specified format.
+ * Formats the message according to the specified format.
* @param formats An array of Strings that provide extra information about
how to format the message.
* StructuredDataMessage accepts only a format of "FULL" which will cause
the event type to be
* prepended and the event message to be appended. Specifying any other
value will cause only the
diff --git
a/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java
b/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java
index 00baba7..5040bb9 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java
@@ -81,7 +81,7 @@ public interface ThreadContextMap {
void put(final String key, final String value);
/**
- * Removes the the context identified by the <code>key</code>
+ * Removes the context identified by the <code>key</code>
* parameter.
* @param key The key to remove.
*/
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/Timer.java
b/log4j-api/src/main/java/org/apache/logging/log4j/util/Timer.java
index 5a56482..019f6b8 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/Timer.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/Timer.java
@@ -22,7 +22,7 @@ import java.text.DecimalFormat;
/**
* Primarily used in unit tests, but can be used to track elapsed time for a
request or portion of any other operation
* so long as all the timer methods are called on the same thread in which it
was started. Calling start on
- * multiple threads will cause the the times to be aggregated.
+ * multiple threads will cause the times to be aggregated.
*/
public class Timer implements Serializable, StringBuilderFormattable
{
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java
index 479ced3..59492a3 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractManager.java
@@ -36,7 +36,7 @@ import org.apache.logging.log4j.status.StatusLogger;
* This class implements {@link AutoCloseable} mostly to allow unit tests to
be written safely and succinctly. While
* managers do need to allocate resources (usually on construction) and then
free these resources, a manager is longer
* lived than other auto-closeable objects like streams. None the less, making
a manager AutoCloseable forces readers to
- * be aware of the the pattern: allocate resources on construction and call
{@link #close()} at some point.
+ * be aware of the pattern: allocate resources on construction and call {@link
#close()} at some point.
* </p>
*/
public abstract class AbstractManager implements AutoCloseable {
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamManager.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamManager.java
index cc92bc6..f581ade 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamManager.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamManager.java
@@ -331,7 +331,7 @@ public class OutputStreamManager extends AbstractManager
implements ByteBufferDe
* {@link #flushBuffer(ByteBuffer)} directly instead.
* </p>
*
- * @param buf the buffer whose contents to write the the destination
+ * @param buf the buffer whose contents to write the destination
* @return the specified buffer
* @since 2.6
*/
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractPathAction.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractPathAction.java
index 7d8ac06..191ec05 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractPathAction.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractPathAction.java
@@ -138,7 +138,7 @@ public abstract class AbstractPathAction extends
AbstractAction {
}
/**
- * Returns the the maximum number of directory levels to visit.
+ * Returns the maximum number of directory levels to visit.
*
* @return the maxDepth
*/
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java
index ee36fea..4aaca77 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java
@@ -77,7 +77,7 @@ public final class Loader {
* <li>Search for {@code resource} using the thread context
* class loader under Java2. If that fails, search for
* {@code resource} using the class loader that loaded this
- * class ({@code Loader}). Under JDK 1.1, only the the class
+ * class ({@code Loader}). Under JDK 1.1, only the class
* loader that loaded this class ({@code Loader}) is used.</li>
* <li>Try one last time with
* {@code ClassLoader.getSystemResource(resource)}, that is is
@@ -139,7 +139,7 @@ public final class Loader {
* <li>Search for {@code resource} using the thread context
* class loader under Java2. If that fails, search for
* {@code resource} using the class loader that loaded this
- * class ({@code Loader}). Under JDK 1.1, only the the class
+ * class ({@code Loader}). Under JDK 1.1, only the class
* loader that loaded this class ({@code Loader}) is used.</li>
* <li>Try one last time with
* {@code ClassLoader.getSystemResource(resource)}, that is is
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ReflectionUtil.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ReflectionUtil.java
index ffee439..a126ece 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ReflectionUtil.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/ReflectionUtil.java
@@ -180,6 +180,7 @@ public final class ReflectionUtil {
* @throws IllegalArgumentException if the given class is abstract, an
interface, an array class, a primitive type,
* or void
* @throws IllegalStateException if access is denied to the
constructor, or there are no default constructors
+ * @throws InternalException wrapper of the underlying exception if
checked
*/
public static <T> T instantiate(final Class<T> clazz) {
Objects.requireNonNull(clazz, "No class provided");
diff --git
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ReconfigureAppenderTest.java
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ReconfigureAppenderTest.java
index 6adc018..8f8e06e 100644
---
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ReconfigureAppenderTest.java
+++
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ReconfigureAppenderTest.java
@@ -139,7 +139,7 @@ public class ReconfigureAppenderTest {
ConfigurationBuilderFactory.newConfigurationBuilder();
// All loggers must have a root logger. The default root logger
logs ERRORs to the console.
- // Override this with a root logger that does not log anywhere
as we leave it up the the
+ // Override this with a root logger that does not log anywhere
as we leave it up the
// appenders on the logger.
config_builder.add(config_builder.newRootLogger(Level.INFO));
diff --git a/log4j-liquibase/src/site/markdown/index.md
b/log4j-liquibase/src/site/markdown/index.md
index f074e5b..f06c262 100644
--- a/log4j-liquibase/src/site/markdown/index.md
+++ b/log4j-liquibase/src/site/markdown/index.md
@@ -27,5 +27,5 @@ For more information, see [Runtime
Dependencies](../runtime-dependencies.html).
## Usage
-Including this module will automatically make Liquibase log via Log4j 2, due
the the plugin auto discovery mechanism of
+Including this module will automatically make Liquibase log via Log4j 2, due
the plugin auto discovery mechanism of
Liquibase.
diff --git a/src/site/asciidoc/manual/json-template-layout.vm.adoc
b/src/site/asciidoc/manual/json-template-layout.vm.adoc
index fa4c355..c0ff96b 100644
--- a/src/site/asciidoc/manual/json-template-layout.vm.adoc
+++ b/src/site/asciidoc/manual/json-template-layout.vm.adoc
@@ -42,7 +42,7 @@ enough to enable access to `JsonTemplateLayout` in your Log4j
configuration:
</dependency>
----
-For instance, given the following JSON template modelling the
+For instance, given the following JSON template modelling
https://github.com/logstash/log4j-jsonevent-layout[the official Logstash
`JSONEventLayoutV1`] (accessible via
`classpath:LogstashJsonEventLayoutV1.json`)