mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not use leading slash when requesting resource: it is non STD classloader behavior to retrieve resources with such path
This commit is contained in:
@@ -188,13 +188,13 @@ public abstract class InspectionToolWrapper<T extends InspectionProfileEntry, E
|
||||
return superGetDescriptionUrl();
|
||||
}
|
||||
String fileName = getDescriptionFileName();
|
||||
return myEP.getLoaderForClass().getResource("/inspectionDescriptions/" + fileName);
|
||||
return myEP.getLoaderForClass().getResource("inspectionDescriptions/" + fileName);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
protected URL superGetDescriptionUrl() {
|
||||
final String fileName = getDescriptionFileName();
|
||||
return ResourceUtil.getResource(getDescriptionContextClass(), "/inspectionDescriptions", fileName);
|
||||
return ResourceUtil.getResource(getDescriptionContextClass(), "inspectionDescriptions", fileName);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user