Class with @Deprecated annotation means that all methods and fields automatically will be deprecated
deprecated, eclipse, java
Solution
No. If you do
@Deprecated
class Old {
public void foo () {}
}
the when you'll reference that class:
new Old().foo()
only
Old
will be marked as deprecated.
Problem
Is Anyone knows if the class with `@Deprecated` annotation means that all methods and fields automatically will be deprecated..? From JLS 9.6.3.6. @Deprecated At lease eclipse is not showing methods as `Deprecated` for Deprecated class.