File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugin/updater/src/main/java/updater Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1515import java .nio .file .Files ;
1616import java .nio .file .Path ;
1717import java .util .Map ;
18- import java .util .function .Function ;
18+ import java .util .function .UnaryOperator ;
1919
2020import javax .xml .XMLConstants ;
2121import javax .xml .parsers .DocumentBuilderFactory ;
@@ -107,7 +107,7 @@ void downloadLicenseFile(final Path targetDir) throws IOException {
107107 * @return grammarFile
108108 */
109109 Path downloadTextMateGrammarFile (final DownloadContext ctx , final String grammarPathOrURL ) throws IOException {
110- final Function < String , String > mapFileExt = fileExt -> switch (fileExt ) {
110+ final UnaryOperator < String > mapFileExt = fileExt -> switch (fileExt ) {
111111 case "json" -> ".tmLanguage.json" ;
112112 case "yml" , "yaml" , "yaml-tmlanguage" -> ".tmLanguage.yaml" ;
113113 case "plist" , "xml" , "tmlanguage" -> ".tmLanguage.plist" ;
You can’t perform that action at this time.
0 commit comments