You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2021/08/17 17:36:42 UTC

[groovy] 02/04: GROOVY-10164: make RootLoader(ClassLoader) public

This is an automated email from the ASF dual-hosted git repository.

emilles pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit de2687e52621b431b29ae0d3719dbaecba456f75
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Fri Jul 16 11:48:04 2021 -0500

    GROOVY-10164: make RootLoader(ClassLoader) public
---
 src/main/java/org/codehaus/groovy/tools/RootLoader.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/tools/RootLoader.java b/src/main/java/org/codehaus/groovy/tools/RootLoader.java
index d8854ce..83c462e 100644
--- a/src/main/java/org/codehaus/groovy/tools/RootLoader.java
+++ b/src/main/java/org/codehaus/groovy/tools/RootLoader.java
@@ -74,7 +74,7 @@ import java.util.Map;
  */
 public class RootLoader extends URLClassLoader {
     private static final URL[] EMPTY_URL_ARRAY = new URL[0];
-    private final Map<String, Class> customClasses = new HashMap<String, Class>();
+    private final Map<String, Class> customClasses = new HashMap<>();
     private static final String ORG_W3C_DOM_NODE = "org.w3c.dom.Node";
 
     /**
@@ -82,7 +82,7 @@ public class RootLoader extends URLClassLoader {
      *
      * @param parent the parent Loader
      */
-    private RootLoader(ClassLoader parent) {
+    public RootLoader(ClassLoader parent) {
         this(EMPTY_URL_ARRAY, parent);
     }