logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: git commit: Add method removed from API.
Date Sat, 04 Oct 2014 23:23:15 GMT
Got it.

On 4 October 2014 18:06, Gary Gregory <garydgregory@gmail.com> wrote:

> Can you add a Javadoc with an @deprecated tag that says something to the
> effect of "do this instead" or "there is no replacement" and "might be
> removed in 3.0".
>
> Thank you!
> Gary
>
> ---------- Forwarded message ----------
> From: <mattsicker@apache.org>
> Date: Sat, Oct 4, 2014 at 6:41 PM
> Subject: git commit: Add method removed from API.
> To: commits@logging.apache.org
>
>
> Repository: logging-log4j2
> Updated Branches:
>   refs/heads/master 1c488bf42 -> f4094f5d3
>
>
> Add method removed from API.
>
>
> Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
> Commit:
> http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f4094f5d
> Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f4094f5d
> Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f4094f5d
>
> Branch: refs/heads/master
> Commit: f4094f5d3d6a736baff521f36b49651f83c7eed6
> Parents: 1c488bf
> Author: Matt Sicker <mattsicker@apache.org>
> Authored: Sat Oct 4 17:41:43 2014 -0500
> Committer: Matt Sicker <mattsicker@apache.org>
> Committed: Sat Oct 4 17:41:43 2014 -0500
>
> ----------------------------------------------------------------------
>  .../java/org/apache/logging/log4j/util/ProviderUtil.java  | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> ----------------------------------------------------------------------
>
>
>
> http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f4094f5d/log4j-api/src/main/java/org/apache/logging/log4j/util/ProviderUtil.java
> ----------------------------------------------------------------------
> diff --git
> a/log4j-api/src/main/java/org/apache/logging/log4j/util/ProviderUtil.java
> b/log4j-api/src/main/java/org/apache/logging/log4j/util/ProviderUtil.java
> index f82b67e..a7ef248 100644
> ---
> a/log4j-api/src/main/java/org/apache/logging/log4j/util/ProviderUtil.java
> +++
> b/log4j-api/src/main/java/org/apache/logging/log4j/util/ProviderUtil.java
> @@ -19,6 +19,7 @@ package org.apache.logging.log4j.util;
>  import java.io.IOException;
>  import java.net.URL;
>  import java.util.Collection;
> +import java.util.Enumeration;
>  import java.util.HashSet;
>  import java.util.Properties;
>  import java.util.concurrent.locks.Lock;
> @@ -78,6 +79,15 @@ public final class ProviderUtil {
>          }
>      }
>
> +    @Deprecated
> +    protected static void loadProviders(final Enumeration<URL> urls,
> final ClassLoader cl) {
> +        if (urls != null) {
> +            while (urls.hasMoreElements()) {
> +                loadProvider(urls.nextElement(), cl);
> +            }
> +        }
> +    }
> +
>      public static Iterable<Provider> getProviders() {
>          lazyInit();
>          return PROVIDERS;
>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Matt Sicker <boards@gmail.com>

Mime
View raw message