Top "Deprecated" questions

Deprecation is a status applied to software features or language terms to indicate that they should be avoided, typically because they have been superseded.

Use of getPreventDefault() is deprecated. Use defaultPrevented instead. Why I'm getting this error and what's the solution for it?

Previously I was using jQuery 1.7.1 in my code. I was getting the above error. Then I used the jQuery 1.11.1 straight …

jquery migration deprecated preventdefault
Why was ActionBarActivity deprecated

I installed Android Studio freshly and I begun coding an activity to extend ActionBarActivity and it showed that it was …

android android-actionbar deprecated android-actionbaractivity
How to get MIME type of a file in PHP 5.5?

I am using mime_content_type() in PHP 5.5 to get a MIME type, but it throws fatal: error function not …

mime-types deprecated php-5.5
How to use spl_autoload() as __autoload() goes DEPRECATED

According to http://php.net/manual/en/language.oop5.autoload.php the magic function __autoload() will become DEPRECATED and DELETED (!) …

php deprecated autoload spl-autoloader
Environment.getExternalStorageDirectory() deprecated in API level 29 java

Working on android Java, recently updated SDK to API level 29 now there is a warning shown which states that Environment.…

android deprecated android-api-levels
How to mark a class as Deprecated?

Possible Duplicate: How do I mark a method as Obsolete/Deprecated? - C# How do you mark a class as …

c# .net oop deprecated
KeyboardEvent.keyCode deprecated. What does this mean in practice?

According to MDN, we should most definitely not be using the .keyCode property. It is deprecated: https://developer.mozilla.org/…

javascript key deprecated keycode
decorators in the python standard lib (@deprecated specifically)

I need to mark routines as deprecated, but apparently there's no standard library decorator for deprecation. I am aware of …

python decorator deprecated
Suppress deprecated import warning in Java

In Java, if you import a deprecated class: import SomeDeprecatedClass; You get this warning: The type SomeDeprecatedClass is deprecated Is …

java import deprecated suppress-warnings