From 35eb94d0513a1d10269d6ed073ba2d62a2861940 Mon Sep 17 00:00:00 2001 From: EstebanMarin Date: Thu, 28 Sep 2023 16:41:08 -0500 Subject: [PATCH 1/3] improve error message for easier understanding --- modules/core/shared/src/main/scala/TraceValue.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/core/shared/src/main/scala/TraceValue.scala b/modules/core/shared/src/main/scala/TraceValue.scala index 55c97226..b518ec80 100644 --- a/modules/core/shared/src/main/scala/TraceValue.scala +++ b/modules/core/shared/src/main/scala/TraceValue.scala @@ -17,17 +17,17 @@ object TraceValue { implicit def viaTraceableValue[A: TraceableValue](a: A): TraceValue = TraceableValue[A].toTraceValue(a) - @deprecated("use toTraceValue", "0.3.0") + @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") def stringToTraceValue(value: String): TraceValue = StringValue(value) - @deprecated("use toTraceValue", "0.3.0") + @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") def boolToTraceValue(value: Boolean): TraceValue = BooleanValue(value) - @deprecated("use toTraceValue", "0.3.0") + @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") def intToTraceValue(value: Int): TraceValue = NumberValue(value) - @deprecated("use toTraceValue", "0.3.0") + @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") def longToTraceValue(value: Long): TraceValue = NumberValue(value) - @deprecated("use toTraceValue", "0.3.0") + @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") def floatToTraceValue(value: Float): TraceValue = NumberValue(value) - @deprecated("use toTraceValue", "0.3.0") + @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") def doubleToTraceValue(value: Double): TraceValue = NumberValue(value) } From e2905d712fb1e8a99e8c0ca24e1b7f8902d67c8d Mon Sep 17 00:00:00 2001 From: EstebanMarin Date: Wed, 4 Oct 2023 09:00:24 -0500 Subject: [PATCH 2/3] Update modules/core/shared/src/main/scala/TraceValue.scala Co-authored-by: Arman Bilge --- modules/core/shared/src/main/scala/TraceValue.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/shared/src/main/scala/TraceValue.scala b/modules/core/shared/src/main/scala/TraceValue.scala index b518ec80..5e93a32a 100644 --- a/modules/core/shared/src/main/scala/TraceValue.scala +++ b/modules/core/shared/src/main/scala/TraceValue.scala @@ -17,7 +17,7 @@ object TraceValue { implicit def viaTraceableValue[A: TraceableValue](a: A): TraceValue = TraceableValue[A].toTraceValue(a) - @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") + @deprecated("use `viaTraceableValue(value)`", "0.3.0") def stringToTraceValue(value: String): TraceValue = StringValue(value) @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") def boolToTraceValue(value: Boolean): TraceValue = BooleanValue(value) From 9c8d651475c244820c21312d6ca6bae7eb2749bb Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Wed, 4 Oct 2023 07:43:16 -0700 Subject: [PATCH 3/3] Fix all the messages --- modules/core/shared/src/main/scala/TraceValue.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/core/shared/src/main/scala/TraceValue.scala b/modules/core/shared/src/main/scala/TraceValue.scala index 5e93a32a..c388886c 100644 --- a/modules/core/shared/src/main/scala/TraceValue.scala +++ b/modules/core/shared/src/main/scala/TraceValue.scala @@ -19,15 +19,15 @@ object TraceValue { @deprecated("use `viaTraceableValue(value)`", "0.3.0") def stringToTraceValue(value: String): TraceValue = StringValue(value) - @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") + @deprecated("use `viaTraceableValue(value)`", "0.3.0") def boolToTraceValue(value: Boolean): TraceValue = BooleanValue(value) - @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") + @deprecated("use `viaTraceableValue(value)`", "0.3.0") def intToTraceValue(value: Int): TraceValue = NumberValue(value) - @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") + @deprecated("use `viaTraceableValue(value)`", "0.3.0") def longToTraceValue(value: Long): TraceValue = NumberValue(value) - @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") + @deprecated("use `viaTraceableValue(value)`", "0.3.0") def floatToTraceValue(value: Float): TraceValue = NumberValue(value) - @deprecated("use .viaTraceableValue(TraceableValue)", "0.3.0") + @deprecated("use `viaTraceableValue(value)`", "0.3.0") def doubleToTraceValue(value: Double): TraceValue = NumberValue(value) }