We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81d34fe commit 5e16535Copy full SHA for 5e16535
modules/sample-akkaHttpJackson/src/main/scala/examples/support/PositiveLong.scala
@@ -12,7 +12,7 @@ class PositiveLong private (@(NotNull @param @field) @Min(0) val value: Long)
12
object PositiveLong {
13
def apply(value: Long): Option[PositiveLong] = if (value >= 0) Some(new PositiveLong(value)) else None
14
@JsonCreator
15
- def applyUnsafe(value: Long): PositiveLong = apply(value).getOrElse({ throw new IllegalArgumentException(s"$value is not positive") })
+ def applyUnsafe(long: Long): PositiveLong = apply(long).getOrElse({ throw new IllegalArgumentException(s"$long is not positive") })
16
17
def apply(str: String): PositiveLong = new PositiveLong(str.toLong)
18
0 commit comments