toString() on nullables fixed
This commit is contained in:
+1
-1
@@ -554,7 +554,7 @@ private fun createStringConstant(value: CompileTimeConstant<*>?): StringValue? {
|
|||||||
is CharValue,
|
is CharValue,
|
||||||
is DoubleValue, is FloatValue,
|
is DoubleValue, is FloatValue,
|
||||||
is BooleanValue,
|
is BooleanValue,
|
||||||
is NullValue -> StringValue(value.getValue().toString(), value.canBeUsedInAnnotations(), value.usesVariableAsConstant())
|
is NullValue -> StringValue("${value.getValue()}", value.canBeUsedInAnnotations(), value.usesVariableAsConstant())
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public abstract class AbstractEvaluateExpressionTest : AbstractAnnotationDescrip
|
|||||||
if (compileTimeConstant is StringValue) {
|
if (compileTimeConstant is StringValue) {
|
||||||
"\\\"${compileTimeConstant.getValue()}\\\""
|
"\\\"${compileTimeConstant.getValue()}\\\""
|
||||||
} else {
|
} else {
|
||||||
compileTimeConstant.toString()
|
"$compileTimeConstant"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user