István Fajth created HDDS-10280:
-----------------------------------
Summary: Add a marker interface to denote classes that are plugged
in by configuration
Key: HDDS-10280
URL: https://issues.apache.org/jira/browse/HDDS-10280
Project: Apache Ozone
Issue Type: Sub-task
Reporter: István Fajth
Assignee: István Fajth
The problem to solve here is false positive warnings about unused classes that
are not directly instantiated by the code, but plugged in via some reflective
mechanism.
The suggestion is to introduce a marker annotation, that we can use to mark
such implementation classes, in IntelliJ it is possible to filter out unused
declaration warning on items based on annotation, so it seems to be a feasible
solution.
An additional gain from this is the possibility to connect the code to the
corresponding configuration via a short description added to the code itself,
with the potential to check based on the annotation that these classes are
never instantiated (if we want to implement such a check).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]