You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2022/02/20 15:00:30 UTC
[logging-log4j2] branch release-2.x updated: Javadoc.
This is an automated email from the ASF dual-hosted git repository.
ggregory 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 a5b2574 Javadoc.
a5b2574 is described below
commit a5b2574e43a3ac60a835f0590be04f11c5703fd2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 20 10:00:27 2022 -0500
Javadoc.
---
.../logging/log4j/core/config/ConfigurationSource.java | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationSource.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationSource.java
index c1616eb..b0a68da 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationSource.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationSource.java
@@ -112,7 +112,7 @@ public class ConfigurationSource {
/**
* Constructs a new {@code ConfigurationSource} with the specified input stream that originated from the specified
- * url.
+ * URL.
*
* @param stream the input stream, the caller is responsible for closing this resource.
* @param url the URL where the input stream originated
@@ -126,7 +126,7 @@ public class ConfigurationSource {
/**
* Constructs a new {@code ConfigurationSource} with the specified input stream that originated from the specified
- * url.
+ * URL.
*
* @param stream the input stream, the caller is responsible for closing this resource.
* @param url the URL where the input stream originated
@@ -150,7 +150,14 @@ public class ConfigurationSource {
this(toByteArray(stream), null, 0);
}
- public ConfigurationSource(final Source source, final byte[] data, long lastModified) throws IOException {
+ /**
+ * Constructs a new {@code ConfigurationSource} with the specified source.
+ *
+ * @param source a Source.
+ * @param data data from the source
+ * @param lastModified when the source was last modified.
+ */
+ public ConfigurationSource(final Source source, final byte[] data, long lastModified) {
Objects.requireNonNull(source, "source is null");
this.data = Objects.requireNonNull(data, "data is null");
this.stream = new ByteArrayInputStream(data);