Questions tagged [deprecated]

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 this tag for questions about deprecated features or how to deprecate features yourself (e.g. using annotations).

In the process of authoring computer software, its standards or documentation, deprecation is a status applied to software features to indicate that they should be avoided, typically because they have been superseded. Although deprecated features remain in the software, their use may raise warning messages recommending alternative practices, and deprecation may indicate that the feature will be removed in the future.

Features are deprecated—rather than immediately removed—in order to provide backward compatibility and give programmers who have used the feature time to bring their code into compliance with the new standard.

2508 questions
1
vote
0 answers

(AndroidX) uses or overrides a deprecated API Problem in Database

I have a Warring in my project and I'm using MVVM (AndroidX) but I have this warring message: C:\Users\meste\AndroidStudioProjects\Dacterzo\app\build\generated\source\apt\debug\com\notaf\dacterzo\XAListDatabase_Impl.java: uses or overrides a…
Next
  • 47
  • 7
1
vote
1 answer

Upgrade Rails 3 to 5, scope block syntax

I'm upgrading an app from Rails 3.2 to 5.2, I need to have both versions running at the same time and have run into an issue with the scope block syntax. I've got this relationship on a Project model has_many :companies_projects, include:…
Andrew Algard
  • 105
  • 1
  • 12
1
vote
1 answer

hpple html parse iphone sdk help?

I want to parse html.. so I have found some sample code over: http://blog.objectgraph.com/index.php/2010/02/24/parsing-html-iphone-development/ it uses hpple to parse html... but there is one problem this application is constantly crashing for some…
Tushar Chutani
  • 1,522
  • 5
  • 27
  • 57
1
vote
0 answers

Java - force/warns deprecated annotation without link (or deprecated link)

I see that using deprecation annotation isn't forcing/warning if user doesn't add link to the new item: The ability to deprecate a class, method, or member field solves the problem. Java supports two mechanisms for deprecation: and an annotation,…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
1
vote
0 answers

Resolving lint's deprecated warnings without using @SuppressWarnings

I have a feeling I can deal with the above warning without forcibly suppressing it. However, this doesn't seems to work: static Context updateResources(Context context) { Resources resources = context.getResources(); Configuration…
PIXP
  • 2,382
  • 3
  • 19
  • 28
1
vote
2 answers

What is the proper way of reading/writing NSDictionary and NSArray to a file in Objective-C in 2018?

The following NSDictionary methods and their equivalent NSArray methods for interacting with files are deprecated: [NSDictionary dictionaryWithContentsOfURL:] [NSDictionary dictionaryWithContentsOfFile:] [NSDictionary…
simsula
  • 147
  • 7
1
vote
1 answer

How to change wrapper class initialization in Java 9?

As everyone knows from java 9, the most of the constructors of wrapper classes are deprecated. As eg : new Boolean(true): Deprecated : Instead use Boolean.valueOf(true); new Boolean("false") : Deprecated : Instead use…
Arnab Dhar
  • 239
  • 2
  • 15
1
vote
2 answers

PHP 7.2 each is deprecated. Convert for each to foreach

I got these 2 functions that throw DEPRECATED notices on php 7.2 function session_unregister($var) { global $session; for (reset($session->vars); list($i)=each($session->vars);) { if ($session->vars[$i] == trim($var)) { …
Nikita 웃
  • 2,042
  • 20
  • 45
1
vote
1 answer

How to eliminate writestringtomemory warning in Web page?

None of the javascript in my Web page contains the function writeStringToMemory, but I keep seeing warnings in the console that writeStringToMemory is deprecated and to use stringToUTF8() instead. Where does the deprecated code exist? How do I…
Scott Pendleton
  • 1,021
  • 3
  • 16
  • 32
1
vote
2 answers

Function create_function is deprecated in PHP 7.2

The function create_function has been deprecated as of PHP 7.2. Worked previously in PHP 5 but after updating PHP crashes. $func = create_function('$atts, $content = null','return "
" . do_shortcode($content) .…
1
vote
2 answers

GCC deprecation message on override

In GCC, you can create a deprecation warning when someone calls a deprecated function with void __attribute__((deprecated)) foo() {} Can you create a similar deprecation warning when someone overrides a virtual method of a class?
Vortico
  • 2,610
  • 2
  • 32
  • 49
1
vote
0 answers

How to use firebasedynamiclinks for get short link for google drive files using google apps script?

Please say how to use firebase dynamic links for get short link for google drive files using google apps script. Before I was use urlshortner to generate short link for google drive files. Now UrlShortner is deprecated, please give solution for…
1
vote
1 answer

PixelFormat deprecated 1.6?

I am using Camera.Parameters.setPixelFormat(PixelFormat.JPEG) in my android 1.6 application. The documentation says this is deprecated, but the constant value is the same as the new ImageFormat... Should I not worry about it?
Tom Fobear
  • 6,729
  • 7
  • 42
  • 74
1
vote
1 answer

django.core.management.sql.sql_delete removed on django 1.11

I'm upgrading django from 1.8 to 1.11 and this imports are failing from django.core.management.sql import sql_delete *** ImportError: cannot import name sql_delete from django.core.management.sql import sql_all *** ImportError: cannot import name…
Luis Sobrecueva
  • 680
  • 1
  • 6
  • 13
1
vote
0 answers

How can I fix a Function ereg is deprecated in

I have a script, albeit old, that is having the following error PHP Deprecated: Function ereg() is deprecated in /home/mysite/public_html/lang/index.php on line 12 line 12 has this…
gwmbox
  • 123
  • 3
  • 13