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/07/12 15:53:47 UTC

[groovy] branch GROOVY-10164 created (now c2357d3)

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

emilles pushed a change to branch GROOVY-10164
in repository https://gitbox.apache.org/repos/asf/groovy.git.


      at c2357d3  GROOVY-10164: make RootLoader(ClassLoader) public

This branch includes the following new commits:

     new c2357d3  GROOVY-10164: make RootLoader(ClassLoader) public

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


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

Posted by em...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c2357d35bd4bb2629a4ccbbecfa36b19002dcec7
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Mon Jul 12 10:52:32 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 7b12aa8..a47508f 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);
     }