[kotlin j2k] Minor: reformat file
authorAlexey Belkov <alexey.belkov@jetbrains.com>
Thu, 27 Jan 2022 09:05:43 +0000 (12:05 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 27 Jan 2022 09:34:51 +0000 (09:34 +0000)
GitOrigin-RevId: 8aea087b49f6af2d3627f7146412f3d6715416fc

plugins/kotlin/j2k/new/src/org/jetbrains/kotlin/nj2k/conversions/LiteralConversion.kt

index 0391430052e9def3b27c0989df2e3668a7333867..f85a3e68cbbfeeed04de87c7a75ecb5212d99718 100644 (file)
@@ -2,7 +2,6 @@
 
 package org.jetbrains.kotlin.nj2k.conversions
 
-
 import org.jetbrains.annotations.NonNls
 import org.jetbrains.kotlin.nj2k.NewJ2kConverterContext
 import org.jetbrains.kotlin.nj2k.tree.*
@@ -55,7 +54,6 @@ class LiteralConversion(context: NewJ2kConverterContext) : RecursiveApplicableCo
             if (text.endsWith(".")) "${text}0" else text
         }
 
-
     private fun JKLiteralExpression.toFloatLiteral() =
         literal.cleanFloatAndDoubleLiterals().let { text ->
             if (!text.endsWith("f")) "${text}f"
@@ -69,15 +67,13 @@ class LiteralConversion(context: NewJ2kConverterContext) : RecursiveApplicableCo
                 String.format("%s\\u%04x", leadingBackslashes, Integer.parseInt(matchResult.groupValues[2], 8))
             else matchResult.value
         }.replace("""\$([A-Za-z]+|\{)""".toRegex(), "\\\\$0")
-            .replace( "\\f", "\\u000c")
-
+            .replace("\\f", "\\u000c")
 
     private fun JKLiteralExpression.convertCharLiteral() =
         literal.replace("""\\([0-3]?[0-7]{1,2})""".toRegex()) {
             String.format("\\u%04x", Integer.parseInt(it.groupValues[1], 8))
         }
 
-
     private fun JKLiteralExpression.toIntLiteral() =
         literal
             .cleanIntAndLongLiterals()
@@ -85,7 +81,6 @@ class LiteralConversion(context: NewJ2kConverterContext) : RecursiveApplicableCo
             .convertBinaryLiteral(isLongLiteral = false)
             .convertOctalLiteral(isLongLiteral = false)
 
-
     private fun JKLiteralExpression.toLongLiteral() =
         literal
             .cleanIntAndLongLiterals()