Improve PrettyPrinterConfiguration

Both of these settings are closer to IDEA's code style.

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent b9c707782c
commit 462ae7cb9c
  1. 2
      deob-ast/src/main/java/dev/openrs2/deob/ast/AstDeobfuscator.kt

@ -56,6 +56,8 @@ class AstDeobfuscator(private val modules: List<Path>) {
val printerConfig = PrettyPrinterConfiguration()
.setIndentType(PrettyPrinterConfiguration.IndentType.TABS_WITH_SPACE_ALIGN)
.setIndentSize(1)
.setIndentCaseInSwitch(false)
.setOrderImports(true)
val printer = PrettyPrinter(printerConfig)

Loading…
Cancel
Save