File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -597,6 +597,17 @@ object Build {
597
597
recur(lines, false )
598
598
}
599
599
600
+ // Hotfix for JDK 8
601
+ def replaceJDK11APIs (lines : List [String ], file : File ): List [String ] = {
602
+ if (file.getName == " InlayHints.scala" ) {
603
+ lines.map{
604
+ _.replace(" .repeat(naiveIndent)" , " * naiveIndent" )
605
+ }
606
+ } else {
607
+ lines
608
+ }
609
+ }
610
+
600
611
/** replace imports of `com.google.protobuf.*` with compiler implemented version */
601
612
def replaceProtobuf (lines : List [String ]): List [String ] = {
602
613
def recur (ls : List [String ]): List [String ] = ls match {
@@ -1271,7 +1282,7 @@ object Build {
1271
1282
val mtagsSharedSources = (targetDir ** " *.scala" ).get.toSet
1272
1283
mtagsSharedSources.foreach(f => {
1273
1284
val lines = IO .readLines(f)
1274
- val substitutions = (replaceProtobuf(_)) andThen (insertUnsafeNullsImport(_))
1285
+ val substitutions = (replaceProtobuf(_)) andThen (insertUnsafeNullsImport(_)) andThen (replaceJDK11APIs(_, f))
1275
1286
IO .writeLines(f, substitutions(lines))
1276
1287
})
1277
1288
mtagsSharedSources
You can’t perform that action at this time.
0 commit comments