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 {
597597    recur(lines, false )
598598  }
599599
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+ 
600611  /**  replace imports of `com.google.protobuf.*` with compiler implemented version */  
601612  def  replaceProtobuf (lines : List [String ]):  List [String ] =  {
602613    def  recur (ls : List [String ]):  List [String ] =  ls match  {
@@ -1271,7 +1282,7 @@ object Build {
12711282          val  mtagsSharedSources  =  (targetDir **  " *.scala" 
12721283          mtagsSharedSources.foreach(f =>  {
12731284            val  lines  =  IO .readLines(f)
1274-             val  substitutions  =  (replaceProtobuf(_)) andThen (insertUnsafeNullsImport(_))
1285+             val  substitutions  =  (replaceProtobuf(_)) andThen (insertUnsafeNullsImport(_)) andThen (replaceJDK11APIs(_, f)) 
12751286            IO .writeLines(f, substitutions(lines))
12761287          })
12771288          mtagsSharedSources
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments