Skip to content

Commit ddc8930

Browse files
committed
fix IncludeFinder after merge
1 parent de14437 commit ddc8930

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

key.core/src/main/java/de/uka/ilkd/key/nparser/builder/IncludeFinder.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import java.io.File;
77
import java.net.MalformedURLException;
8-
import java.net.URI;
98
import java.nio.file.Path;
109

1110
import de.uka.ilkd.key.nparser.KeYParser;
@@ -59,12 +58,8 @@ private void addInclude(String filename) throws MalformedURLException {
5958
// whatsoever
6059
filename = filename.replace('\\', File.separatorChar); // Special handling for Linux
6160
var path = base.resolve(filename).normalize();
62-
String pathString = path.toString().replace(File.separatorChar, '/'); // URIs on Windows
6361

64-
if (!(pathString.startsWith("file:") || pathString.startsWith("jar:"))) {
65-
pathString = "file:///" + pathString;
66-
}
67-
var url = URI.create(pathString).toURL();
62+
var url = path.toUri().toURL();
6863
source = RuleSourceFactory.initRuleFile(url);
6964
if (ldt) {
7065
includes.putLDT(filename, source);

key.core/src/test/java/SchemaJavaRegressionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class SchemaJavaRegressionTest {
5454
}
5555
}
5656

57-
@Test
57+
//@Test
5858
void createOracle() throws IOException {
5959
var factory = YAMLFactory.builder()
6060
.enable(YAMLGenerator.Feature.SPLIT_LINES)

0 commit comments

Comments
 (0)