Skip to content

Commit

Permalink
Improved: Remove ‘GroovyUtil#loadClass’ (OFBIZ-10820)
Browse files Browse the repository at this point in the history
The ‘GroovyUtil#loadClass’ method was not used anywhere in the
framework.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1854665 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Mar 2, 2019
1 parent dea9ca9 commit 10891b6
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,6 @@ public static Class<?> getScriptClassFromLocation(String location) throws Genera
}
}

public static Class<?> loadClass(String path) throws ClassNotFoundException, IOException {
GroovyClassLoader groovyClassLoader = new GroovyClassLoader();
Class<?> classLoader = groovyClassLoader.loadClass(path);
groovyClassLoader.close();
return classLoader;
}

/**
* Parses a Groovy class from an input stream.
* <p>
Expand Down

0 comments on commit 10891b6

Please sign in to comment.