Issue #6052 - Applying changes from review
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
a3a1478c91
commit
9e29832a8a
|
@ -178,12 +178,12 @@ public class TypeUtil
|
||||||
|
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
// Lookup order in LOCATION_METHOD is important.
|
// Lookup order in LOCATION_METHODS is important.
|
||||||
LOCATION_METHODS.add(TypeUtil::getCodeSourceLocation);
|
LOCATION_METHODS.add(TypeUtil::getCodeSourceLocation);
|
||||||
Function<Class<?>, URI> moduleFunc = null;
|
Function<Class<?>, URI> moduleFunc = null;
|
||||||
try
|
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();
|
Object obj = clazzModuleLocation.getConstructor().newInstance();
|
||||||
if (obj instanceof Function)
|
if (obj instanceof Function)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue