Include generics in Function cast

The Kotlin compiler was happy with the old code, but IDEA wasn't.
Including the generics explicitly in the cast makes both happy.
bzip2
Graham 5 years ago
parent 77e8b0cdc0
commit 4df5754dac
  1. 3
      deob-ast/src/main/java/dev/openrs2/deob/ast/AstDeobfuscator.kt

@ -1,6 +1,7 @@
package dev.openrs2.deob.ast package dev.openrs2.deob.ast
import com.github.javaparser.ParserConfiguration import com.github.javaparser.ParserConfiguration
import com.github.javaparser.ast.CompilationUnit
import com.github.javaparser.printer.PrettyPrinter import com.github.javaparser.printer.PrettyPrinter
import com.github.javaparser.printer.PrettyPrinterConfiguration import com.github.javaparser.printer.PrettyPrinterConfiguration
import com.github.javaparser.symbolsolver.JavaSymbolSolver import com.github.javaparser.symbolsolver.JavaSymbolSolver
@ -59,7 +60,7 @@ class AstDeobfuscator(private val modules: List<Path>) {
} }
} }
root.printer = Function(printer::print) root.printer = Function<CompilationUnit, String>(printer::print)
root.saveAll() root.saveAll()
} }
} }

Loading…
Cancel
Save