Skip to content

Commit

Permalink
Issue #6052 - Applying changes from review
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
  • Loading branch information
joakime committed Mar 15, 2021
1 parent a3a1478 commit 9e29832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jetty-util/src/main/java/org/eclipse/jetty/util/TypeUtil.java
Expand Up @@ -178,12 +178,12 @@ public class TypeUtil

static
{
// Lookup order in LOCATION_METHOD is important.
// Lookup order in LOCATION_METHODS is important.
LOCATION_METHODS.add(TypeUtil::getCodeSourceLocation);
Function<Class<?>, URI> moduleFunc = null;
try
{
Class<?> clazzModuleLocation = Class.forName(TypeUtil.class.getPackage().getName() + ".ModuleLocation");
Class<?> clazzModuleLocation = TypeUtil.class.getClassLoader().loadClass(TypeUtil.class.getPackage().getName() + ".ModuleLocation");
Object obj = clazzModuleLocation.getConstructor().newInstance();
if (obj instanceof Function)
{
Expand Down

0 comments on commit 9e29832

Please sign in to comment.