Support of @deprecated tag for java wrappers
is there any way to make a wrapper class or methods deprecated in java wrappers (support of @deprecated annotation)? It would be very convenient.
For example, feature2d wrappers like FeatureDetector and DescriptorExtractor seem to be redundant as the same functionality is now supported in opencv3.1 through children of Feature2D class. It would be good to annotate these classes as obsolete so that developers would be encouraged to use new more extensible and flexible API.
If the @deprecated annotation is not supported yet what would be the correct approach to introduce it to opencv 3.1?
though (imho) you're right about the feature2d situation - the java wrappers are script-generated from c++ headers
so is there any notation in c++ we can use for deriving @deprecated annotation?
doxygen's
\deprecated
or@deprecated
, maybe.doxygen I think is a possible option but will it generate compilation warnings for c++ and python when a non-deprecated class or method is using a deprecated one? I googled a bit and found this article. Also some info here. For python there is something similar. Does it make sense to introduce these to opencv or doesn't it?
no, it won't generate compiler warnings.
have a look here , too .
also: http://docs.opencv.org/master/da/d58/...
(that's where all those doxygen tags end up)