File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public static String loadFileFromClasspath(String location) {
13
13
String file = FilenameUtils .separatorsToUnix (location );
14
14
15
15
InputStream inputStream = ClasspathHelper .class .getResourceAsStream (file );
16
-
16
+
17
17
if (inputStream == null ) {
18
18
inputStream = ClasspathHelper .class .getClassLoader ().getResourceAsStream (file );
19
19
}
@@ -22,10 +22,6 @@ public static String loadFileFromClasspath(String location) {
22
22
inputStream = ClassLoader .getSystemResourceAsStream (file );
23
23
}
24
24
25
- if (inputStream == null ) {
26
- inputStream = Thread .currentThread ().getContextClassLoader ().getResourceAsStream (file );
27
- }
28
-
29
25
if (inputStream != null ) {
30
26
try {
31
27
return IOUtils .toString (inputStream );
You can’t perform that action at this time.
0 commit comments