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
1 answer

Deprecating an entire package in Kotlin

According to this answer package-level deprecation is possible in Java via package-info.java like so: /** * @deprecated As of release 2.0, replaced by {@link com.acme.new.package} */ @Deprecated package com.acme.old.package; Is there something…
Mike Holler
  • 945
  • 2
  • 13
  • 28
1
vote
0 answers

activityManager.getRunningServices(int maxNum) in android 8?

Android documentation says this method is deprecated in android Oreo. How can I get the list of running services in API-26 then? Is there any workaround? What about getting a list of running processes? I used activityManager.getRunningAppProcesses()…
1
vote
1 answer

Ruby Sass Deprecation - How Do I see If my Version is Being Deprecated

I've seen on a few blogs and Twitter recently that Ruby Sass is being deprecated. When you look on the Sass docs, the installation method they use is the one I've always used on the command line i.e. gem install sass -- is this being made…
pjk_ok
  • 618
  • 7
  • 35
  • 90
1
vote
1 answer

Android leaderboard & Achievements deprecate

After updating play-services-games to 11.8.0, Leaderboard and Achievements became deprecate.
1
vote
1 answer

Equivalent to the deprecated Platform.getPlugin(), need access to org.eclipse.ui plugin

In a custom plug-in that I need to migrate from Eclipse 4.5.2 to Eclipse 4.6.3, I'm using the following code to access the org.eclipse.ui plugin public class myClass extends Wizard { ... AbstractUIPlugin plugin = (AbstractUIPlugin)…
vincrichaud
  • 2,218
  • 17
  • 34
1
vote
1 answer

collapseActionView() deprecated

I'm trying to close an action bar search view programmatically. Using the code MenuItemCompat.collapseActionView(action_search); worked fine, but collapseActionView showed as deprecated. The documentation states. This method was deprecated in…
seekingStillness
  • 4,833
  • 5
  • 38
  • 68
1
vote
1 answer

AttributeError: model object has no attribute 'rel'

In django 1.9 I used this custom MultilingualCharField, then I upgrade to django 2.0 and it give error at runserver: class MultilingualCharField(models.CharField): def __init__(self, verbose_name=None, **kwargs): self._blank =…
fabio
  • 1,210
  • 2
  • 26
  • 55
1
vote
1 answer

Why are Vector and HashTable widely believed to be due for deprecation?

Possible Duplicate: Why Java Vector class is considered obsolete or deprecated? Also, is there an official word from Sun/Oracle on that? Thanks. EDIT: I'm aware of the other topic, but it didn't mention whether there was an official word on this,…
user183037
  • 2,549
  • 4
  • 31
  • 42
1
vote
1 answer

Marker anchor/offset on Mapbox 5.2

I am setting markers on an Android Mapbox. Those markers are not squarred images and can not be centered, they need an offset. On Google Maps I can use Anchor, X and Y. On previous versions of Mapbox I could have used MarkerView with the same…
Ben-J
  • 1,084
  • 8
  • 24
1
vote
2 answers

php deprecated function removal and repclacement problems

I am trying to replace the deprecated functions in my PHP source code with new recommended ones. But I was having a big problem with replacing eregi function with preg_match function with an "i" in the regex pattern as suggested in the php manual.…
Kartins
  • 3,469
  • 3
  • 17
  • 17
1
vote
1 answer

VOLUME_SETTINGS deprecated on API 23 and now app is with errors

I updated an app to API 23. (min sdk 14 target sdk 23) Ok. The app was working fine up to API 21 but reading info at sites and forums I noticed that Android deprecated the VOLUME_SETTINGS function on Android M so this function appears as error in…
unarea
  • 43
  • 2
  • 8
1
vote
1 answer

If I mark a method as Obsolete["...", true], what should be the return value? An arbitrary value?

I have a method that is being made obsolete (in fact completely unsupported) because the underlying concept is being removed. So, the method can't have any implementation and I made it throw new NotSupportedException(). Does it make sense to also…
Ms. Corlib
  • 69
  • 2
1
vote
0 answers

Substitute/Replacement for WeakReferenceMonitor

So I've been using WeakReferenceMonitor for a while. It was however, deprecated in 4.3.6 and has now been removed in Spring 5. Was wondering if anyone has an idea of what I can use to replace this? Also, I can't really find any discussion on why it…
Michael Wiles
  • 20,902
  • 18
  • 71
  • 101
1
vote
0 answers

Java deprecated API using Xlint:deprecation

I want to remove all use of deprecated API's in my code. But for few API's I get this message upon compiling. [Some input files use or override a deprecated API. Recompile with -Xlint:deprecation for details.] With what maven command can I use to…
1
vote
1 answer

deprecated error in LUWIT

The method CommandListener(ActionListener) from the type Form is deprecated. the above error started coming when I imported this. import com.sun.lwuit.Form; Form f = new Form("Hello, LWUIT!"); f.show(); f.setCommandListener(this); //error…
garima
  • 5,154
  • 11
  • 46
  • 77