55import java .util .Map ;
66
77import com .github .codeql .Label ;
8+ import com .github .codeql .DbFile ;
89import com .github .codeql .TrapWriter ;
910import com .github .codeql .KotlinExtractorDbSchemeKt ;
1011import com .semmle .util .exception .CatastrophicError ;
@@ -75,7 +76,7 @@ public Label populateFile(File absoluteFile) {
7576 return getFileLabel (absoluteFile , true );
7677 }
7778
78- public Label getFileLabel (File absoluteFile , boolean populateTables ) {
79+ public Label < DbFile > getFileLabel (File absoluteFile , boolean populateTables ) {
7980 String databasePath = transformer .fileAsDatabaseString (absoluteFile );
8081 Label result = tw .getLabelFor ("@\" " + escapeKey (databasePath ) + ";sourcefile" + "\" " );
8182 // Ensure the rewritten path is used from now on.
@@ -113,7 +114,7 @@ public Label relativeFileId(File jarFile, String pathWithinJar) {
113114 return getFileInJarLabel (jarFile , pathWithinJar , true );
114115 }
115116
116- public Label getFileInJarLabel (File jarFile , String pathWithinJar , boolean populateTables ) {
117+ public Label < DbFile > getFileInJarLabel (File jarFile , String pathWithinJar , boolean populateTables ) {
117118 if (pathWithinJar .contains ("\\ " ))
118119 throw new CatastrophicError ("Invalid jar path: '" + pathWithinJar + "' should not contain '\\ '." );
119120
@@ -148,4 +149,4 @@ public Label getFileInJarLabel(File jarFile, String pathWithinJar, boolean popul
148149 return current ;
149150 }
150151
151- }
152+ }
0 commit comments