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/01/11 20:19:36 UTC

[logging-log4j2] 03/03: Fix 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

commit c1483dbc8020193bd0f683485266aa3a35195f83
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jan 11 15:19:29 2022 -0500

    Fix Javadoc.
---
 .../java/org/apache/logging/log4j/core/util/Source.java  | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Source.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Source.java
index 870ee04..87a6418 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Source.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Source.java
@@ -19,6 +19,7 @@ package org.apache.logging.log4j.core.util;
 
 import java.io.File;
 import java.net.URI;
+import java.net.URL;
 import java.util.Objects;
 
 import org.apache.logging.log4j.core.config.ConfigurationSource;
@@ -34,6 +35,7 @@ public class Source {
 
     /**
      * Constructs a Source from a ConfigurationSource.
+     *
      * @param source The ConfigurationSource.
      */
     public Source(ConfigurationSource source) {
@@ -57,7 +59,7 @@ public class Source {
     /**
      * Constructs a new {@code Source} from the specified URI.
      *
-     * @param uri the URL where the input stream originated
+     * @param uri the URI where the input stream originated
      */
     public Source(final URI uri, final long lastModified) {
         this.uri = Objects.requireNonNull(uri, "URI is null");
@@ -76,20 +78,20 @@ public class Source {
     }
 
     /**
-     * Gets the configuration source URL, or {@code null} if this configuration source is based on a file or has
-     * neither a file nor an URL.
+     * Gets the configuration source URI, or {@code null} if this configuration source is based on a file or has
+     * neither a file nor an URI.
      *
-     * @return the configuration source URL, or {@code null}
+     * @return the configuration source URI, or {@code null}
      */
     public URI getURI() {
         return uri;
     }
 
     /**
-     * Gets a string describing the configuration source file or URL, or {@code null} if this configuration source
-     * has neither a file nor an URL.
+     * Gets a string describing the configuration source file or URI, or {@code null} if this configuration source
+     * has neither a file nor an URI.
      *
-     * @return a string describing the configuration source file or URL, or {@code null}
+     * @return a string describing the configuration source file or URI, or {@code null}
      */
     public String getLocation() {
         return location;