You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/01/16 11:48:00 UTC
[tomcat] branch master updated: Simplify
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 9e50f37 Simplify
9e50f37 is described below
commit 9e50f37d6aa0c6726a82eca70bd559753d72794f
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jan 16 11:47:11 2020 +0000
Simplify
---
java/org/apache/catalina/startup/WebappServiceLoader.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/java/org/apache/catalina/startup/WebappServiceLoader.java b/java/org/apache/catalina/startup/WebappServiceLoader.java
index 11c4b43..0b8eab8 100644
--- a/java/org/apache/catalina/startup/WebappServiceLoader.java
+++ b/java/org/apache/catalina/startup/WebappServiceLoader.java
@@ -96,8 +96,6 @@ public class WebappServiceLoader<T> {
LinkedHashSet<String> applicationServicesFound = new LinkedHashSet<>();
LinkedHashSet<String> containerServicesFound = new LinkedHashSet<>();
- ClassLoader loader = servletContext.getClassLoader();
-
// if the ServletContext has ORDERED_LIBS, then use that to specify the
// set of JARs from WEB-INF/lib that should be used for loading services
@SuppressWarnings("unchecked")
@@ -141,7 +139,7 @@ public class WebappServiceLoader<T> {
}
// and use the parent ClassLoader for all other SCIs
- loader = context.getParentClassLoader();
+ ClassLoader loader = context.getParentClassLoader();
Enumeration<URL> resources;
if (loader == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org