Discussion:
git commit: Add method removed from API.
Gary Gregory
2014-10-04 23:06:28 UTC
Permalink
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: <***@apache.org>
Date: Sat, Oct 4, 2014 at 6:41 PM
Subject: git commit: Add method removed from API.
To: ***@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 <***@apache.org>
Authored: Sat Oct 4 17:41:43 2014 -0500
Committer: Matt Sicker <***@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: ***@gmail.com | ***@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
2014-10-04 23:23:15 UTC
Permalink
Got it.
Post by Gary Gregory
effect of "do this instead" or "there is no replacement" and "might be
removed in 3.0".
Thank you!
Gary
---------- Forwarded message ----------
Date: Sat, Oct 4, 2014 at 6:41 PM
Subject: git commit: Add method removed from API.
Repository: logging-log4j2
refs/heads/master 1c488bf42 -> f4094f5d3
Add method removed from API.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
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
Authored: Sat Oct 4 17:41:43 2014 -0500
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 {
}
}
+ 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;
--
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 <***@gmail.com>
Loading...