[
https://issues.apache.org/jira/browse/SPARK-39724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-39724:
------------------------------------
Assignee: Apache Spark
> Remove duplicate `.setAccessible(true)` in `kvstore.KVTypeInfo`
> ----------------------------------------------------------------
>
> Key: SPARK-39724
> URL: https://issues.apache.org/jira/browse/SPARK-39724
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 3.4.0
> Reporter: Yang Jie
> Assignee: Apache Spark
> Priority: Minor
>
> {code:java}
> for (Method m : type.getDeclaredMethods()) {
> KVIndex idx = m.getAnnotation(KVIndex.class);
> if (idx != null) {
> checkIndex(idx, indices);
> Preconditions.checkArgument(m.getParameterTypes().length == 0,
> "Annotated method %s::%s should not have any parameters.",
> type.getName(), m.getName());
> m.setAccessible(true);
> indices.put(idx.value(), idx);
> m.setAccessible(true);
> accessors.put(idx.value(), new MethodAccessor(m));
> } {code}
> The above code has duplicate calls to `.setAccessible(true)`.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]