public static boolean isDeprecated ( Method method ) { return isDeprecated ( method . getDeclaringClass ( ) , method . getName ( ) , method . getParameterTypes ( ) ) ; }
Check whether the given method is deprecated . This will also recursively inspect all parent classes and parent interfaces for any other class in the hiearchy that declares the method . It will also check if the class itself is deprecated .