Skip to content

Commit 5e16535

Browse files
1 parent 81d34fe commit 5e16535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: modules/sample-akkaHttpJackson/src/main/scala/examples/support/PositiveLong.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PositiveLong private (@(NotNull @param @field) @Min(0) val value: Long)
1212
object PositiveLong {
1313
def apply(value: Long): Option[PositiveLong] = if (value >= 0) Some(new PositiveLong(value)) else None
1414
@JsonCreator
15-
def applyUnsafe(value: Long): PositiveLong = apply(value).getOrElse({ throw new IllegalArgumentException(s"$value is not positive") })
15+
def applyUnsafe(long: Long): PositiveLong = apply(long).getOrElse({ throw new IllegalArgumentException(s"$long is not positive") })
1616
@JsonCreator
1717
def apply(str: String): PositiveLong = new PositiveLong(str.toLong)
1818

0 commit comments

Comments
 (0)