mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-16 16:46:55 +01:00
updates to allow old suppression file configuration
This commit is contained in:
@@ -151,10 +151,10 @@ public final class FileUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the {@link InputStream} for this resource
|
||||
* Gets the {@link InputStream} for this resource.
|
||||
*
|
||||
* @param resource path
|
||||
* @return
|
||||
* @return the input stream for the given resource
|
||||
*/
|
||||
public static InputStream getResourceAsStream(String resource) {
|
||||
return FileUtils.class.getClassLoader() != null
|
||||
|
||||
@@ -763,7 +763,7 @@ public final class Settings {
|
||||
private static File getJarPath() {
|
||||
String decodedPath = ".";
|
||||
String jarPath = "";
|
||||
ProtectionDomain domain = Settings.class.getProtectionDomain();
|
||||
final ProtectionDomain domain = Settings.class.getProtectionDomain();
|
||||
if (domain != null && domain.getCodeSource() != null && domain.getCodeSource().getLocation() != null) {
|
||||
jarPath = Settings.class.getProtectionDomain().getCodeSource().getLocation().getPath();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user