Drop ArrayValue redundant constructor parameter
This commit is contained in:
@@ -249,7 +249,7 @@ public class AnnotationResolver {
|
||||
|
||||
if (parameterDescriptor.declaresDefaultValue() && constants.isEmpty()) return null;
|
||||
|
||||
return new ArrayValue(constants, parameterDescriptor.getType(), true, usesVariableAsConstant);
|
||||
return new ArrayValue(constants, parameterDescriptor.getType(), usesVariableAsConstant);
|
||||
}
|
||||
else {
|
||||
// we should actually get only one element, but just in case of getting many, we take the last one
|
||||
|
||||
+1
-1
@@ -387,7 +387,7 @@ public class ConstantExpressionEvaluator private constructor(val trace: BindingT
|
||||
val varargType = resultingDescriptor.getValueParameters().first().getVarargElementType()!!
|
||||
|
||||
val arguments = call.getValueArguments().values().flatMap { resolveArguments(it.getArguments(), varargType) }
|
||||
return ArrayValue(arguments, resultingDescriptor.getReturnType()!!, true, arguments.any() { it.usesVariableAsConstant() })
|
||||
return ArrayValue(arguments, resultingDescriptor.getReturnType()!!, arguments.any() { it.usesVariableAsConstant() })
|
||||
}
|
||||
|
||||
// Ann()
|
||||
|
||||
Reference in New Issue
Block a user