Skip to content

Commit

Permalink
docs: minor comment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lbressler13 committed Feb 1, 2024
1 parent 4d9aa45 commit aeafdfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ class CastingOverflowException private constructor(
baseType: String,
targetType: String,
valueString: String,
overflowValue: Any?,
val overflowValue: Any?,
noArgsConstructor: Boolean
) : ArithmeticException() {
override val message: String?
val overflowValue: Any?

init {
if (noArgsConstructor) {
this.message = null
this.overflowValue = null
this.message = if (noArgsConstructor) {
null
} else {
this.message = "Overflow casting value $valueString of type $baseType to $targetType"
this.overflowValue = overflowValue
"Overflow casting value $valueString of type $baseType to $targetType"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract class IrrationalNumber<T : IrrationalNumber<T>> : Comparable<T>, Number
*/
abstract val isInverted: Boolean
@Deprecated("Property $deprecatedV1", ReplaceWith("isInverted"), DeprecationLevel.WARNING)
val isDivided: Boolean
val isDivided: Boolean // maintained from Irrational interface
get() = isInverted

/**
Expand Down Expand Up @@ -57,7 +57,7 @@ abstract class IrrationalNumber<T : IrrationalNumber<T>> : Comparable<T>, Number
abstract fun inverse(): T

@Deprecated("Method $deprecatedV1", ReplaceWith("inverse"), DeprecationLevel.WARNING)
fun swapDivided(): T = inverse()
fun swapDivided(): T = inverse() // maintained from Irrational interface

operator fun times(other: IrrationalNumber<*>): Term = Term.fromValues(ExactFraction.ONE, listOf(this, other))
operator fun times(other: ExactFraction): Term = Term.fromValues(other, listOf(this))
Expand Down

0 comments on commit aeafdfc

Please sign in to comment.