We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2997ded commit 252f8eaCopy full SHA for 252f8ea
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeFormatter.scala
@@ -28,9 +28,7 @@ import java.util.regex.Matcher
28
object CodeFormatter {
29
val commentHolder = """\/\*(.+?)\*\/""".r
30
31
- def format(code: CodeAndComment): String = format(code, -1)
32
-
33
- def format(code: CodeAndComment, maxLines: Int): String = {
+ def format(code: CodeAndComment, maxLines: Int = -1): String = {
34
val formatter = new CodeFormatter
35
val lines = code.body.split("\n")
36
val needToTruncate = maxLines >= 0 && lines.length > maxLines
0 commit comments