Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Nov 24, 2023
1 parent 453f96f commit f3ed8b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ object MathUtils {
case byteValue: Byte => byteValue >= 0
case shortValue: Short => shortValue >= 0
case charValue: Char => charValue >= 0
case _ => try {
o.toString.toDouble >= 0.0d
} catch {
case _: Exception => false
}
case _ =>
try {
o.toString.toDouble >= 0.0d
} catch {
case _: Exception => false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ package org.apache.kyuubi.util

// scalastyle:off

import org.apache.kyuubi.util.MathUtils.isNonNegativeNumber
import org.scalatest.funsuite.AnyFunSuite

import org.apache.kyuubi.util.MathUtils.isNonNegativeNumber
// scalastyle:on

// scalastyle:off
Expand Down

0 comments on commit f3ed8b4

Please sign in to comment.