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
2 answers

how to fix deprecated :eq selector in jquery 3.4

As of jQuery 3.4 :eq is being deprecated and instead .eq() should be used. Here is a code snippet which has multiple jQuery selectors which are using :eq. How can I break multiple selectors to use .eq() instead of…
1
vote
1 answer

com.google.android.gms.location.places.ui.placeautocompletefragment is deprecated

placeautocompletefragmentis deprecated. I need an alternative code for the same. Here's the code sample PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment) …
1
vote
0 answers

Checkstyle reports missing javadoc summary on a deprecated class with @deprecated javadoc tag

In my checkstyle.xml file, I have javadoc summary enabled: I have a class with following javadoc: /** * @deprecated this class will be removed in future. Use {@link com.mypackage.myclass} instead …
Ubeogesh
  • 1,633
  • 2
  • 15
  • 22
1
vote
0 answers

What is the alternative to TermFilter() in ElasticSearch 7.5

I am wondering about an alternative method to TermFilter() in ES 7.5, it's deprecated since ES 2.x. My current method: @Override public boolean deleteAnnotation(String userName, String id) throws Exception { final IndexAndType…
Oussama EL ABED
  • 129
  • 1
  • 1
  • 10
1
vote
1 answer

How can I hide or remove deprecation notices from gem 1.8.x?

The gem command (version 1.8.1 and probably 1.8.0) spews out a tonne of deprecation notices on every invocation. It is painful to page through a screen of warnings to look at test output. Is there an easy way to hide deprecation notices ? …
Ivar
  • 5,102
  • 2
  • 31
  • 43
1
vote
1 answer

Alternative to obsolete ForSqlServerUseSequenceHiLo()?

I'm using .NET Core 3 and so when trying to utilize ForSqlServerUseSequenceHiLo(), the method does not exist in the Microsoft.EntityFrameworkCore namespace (or in the SqlServerPropertyBuilderExtensions extention). The documentation notes that this…
8protons
  • 3,591
  • 5
  • 32
  • 67
1
vote
2 answers

Should I be using ViewModelProvider instead of ViewModelProviders? If so, why?

So I have been following the Android ViewModel Overview as I need to communicate between fragments, when creating the ViewModel, it uses ViewModelProviders which requires you to add dependencies. Upon looking at the documentation for…
RyanJ
  • 158
  • 10
1
vote
2 answers

Import deprecated warning after updating target sdk to 29

After updating compile and targetSdkVersion to "29" in build.gradle I get deprecation warning: warning: [deprecation] NetworkInfo in android.net has been deprecated import android.net.NetworkInfo; ^ Build fails because of this.…
Kiryl Tkach
  • 3,118
  • 5
  • 20
  • 36
1
vote
0 answers

img-retina alternative for backgrounds in Bootstrap 4.3

Ref: https://github.com/twbs/bootstrap/pull/28072 It looks like the img-retina() mixin has been deprecated with the suggestion that we should use responsive image tags (I assume this is pictures with source sets?) and object-fit for background…
Nick
  • 2,803
  • 1
  • 39
  • 59
1
vote
1 answer

How to replace setDate and getDate

Deprecated code, how to replace setDate and getDate, right now code works, but I can’t present it like that. I have tried Calendar, and I don’t see how that works. Code point is to move exact amount of days back in my calendar. public void…
k87
  • 11
  • 3
1
vote
1 answer

Google Awareness Snapshot API deprecated alternatives

Notice: The Places and Weather contextual signals (exposed via the getPlaces(), and getWeather() methods), are deprecated as of August 7, 2019. I have app using this 2 methods, I searched for alternative to it and I found that I might use "Radar"…
Spongi
  • 501
  • 3
  • 10
  • 19
1
vote
0 answers

Where is it stated the CastRemoteDisplay api is deprecated and is it correct there are no alternatives?

In different answers provided this year it has been stated that CastRemoteDisplay was deprecated and no alternatives were presently available. It is stated that the CastRemoteDisplayAPI interface is deprecated but CastRemoteDisplay class not and in…
1
vote
1 answer

How to perform SFTP operations using PHP after disabling deprecated ciphers on CentOS5?

I have PHP code for SFTP operations which is working fine on a CentOS5 machine currently. After disabling the following deprecated ciphers, it stopped working. Here is the list of ciphers Key Exchange: diffie-hellman-group1-sha1 Ciphers: arcfour256,…
1
vote
1 answer

How to fix deprecated create_function

We have recently updated our Wordpress to work with PHP 7.2. After having a few issues I have turned on the debug to see that most of the issue is deprecated code. I am not a coder but I have look through the forums and found a couple of answers.…
monasita
  • 11
  • 1
1
vote
3 answers

Creating a Java date from YMD HMS values without using deprecated code

I'm spending some time with Java again after a long break on the .NET side. I came across this code: Date date = new Date(Date.UTC(y - 1900, m - 1, d, h, M, s)); Unfortunately Date.UTC has been deprecated for a while. So, what is an equivalent…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742