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

Why Android has deprecated shouldOverrideUrlLoading(WebView view, String url) {} in WebViewClient

Android has deprecated WebViewClient method public boolean shouldOverrideUrlLoading(WebView view, String url) { throw new RuntimeException("Stub!"); } in android api 24 but after going though their documentation i am not able to…
Faisal Khan
  • 2,574
  • 3
  • 20
  • 36
1
vote
7 answers

Delphi 5: Ideas for simulating "Obsolete" or "Deprecated" methods?

i want to mark a method as obsolete, but Delphi 5 doesn't have such a feature. For the sake of an example, here is a made-up method with it's deprecated and new preferred form: procedure TStormPeaksQuest.BlowHodirsHorn; overload;…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
1
vote
1 answer

How to solve this deprecation issue "abs is deprecated: Please use the `abs(_)` free function"

I have a Swift file where I import Foundation and CoreGraphics, but at the place where I call abs(x) where x is a CGFloat, I get this warning: abs is deprecated: Please use the abs(_) free function What function should I use? Thank you
Pop Flamingo
  • 3,023
  • 2
  • 26
  • 64
1
vote
1 answer

Django 1.9.13 complains SubfieldBase is deprecated, but I'm not using it. How to resolve?

I am upgrading an old Django project from Django 1.8.3 to the current Django 1.11, but to be cautious, I am upgrading to each major release of Django along the way, so I can find errors & deprecations and fix them before taking the next step. (I…
swizzlevixen
  • 325
  • 1
  • 12
1
vote
1 answer

what can be used instead of readLine() in android studio

'readLine()' is deprecated less... this is the error which is shown when i am using readLine() in android studio. What can be used instead DataInputStream in = new DataInputStream(client.getInputStream()); String line = null; …
1
vote
1 answer

PHP - is mysql_prep deprecated

I'm working on a login form and am using some code from a tutorial. Now I don't remember what the mysql_prep was for and whether it's deprecated, since it's not mysqli... I couldn't really make sense of what I googled. Is it ok to use this or should…
Melvin
  • 329
  • 4
  • 20
1
vote
1 answer

What would be a correct procedure to deprecate a class template while keeping the class name?

There's a class template that I would like to deprecate in my project. template class X {}; I've come up with a following scheme to do that. Stage 1 For next release - let's say version "5" - I'm going to provide the "new"…
Freddie Chopin
  • 8,440
  • 2
  • 28
  • 58
1
vote
1 answer

UITextView Hyperlink to Internal WebView

UITextView allows tappable attributedText based hyperlinks.The user interaction with the link can be intercepted by implementing the delegate method. textView:shouldInteractWithURL:in: which has two variations, for iOS 10 and one for iOS 9 as…
atastrophic
  • 3,153
  • 3
  • 31
  • 50
1
vote
2 answers

Deprecating FBML

As you probably already know (or read quote at the end of this post), Facebook is deprecating FBML in favor of iframes for developping applications. I am currently launching a new browser plug in and need a landing tab on my facebook page with…
Gabriel S.
  • 1,961
  • 2
  • 20
  • 30
1
vote
1 answer

how to implement abstract class EndpointDiscoveryListener and ConnectionRequestListener in new play-services-nearby?

I update my play-services-nearby to version '10.2.0', it changes the EndpointDiscoveryListener and ConnectionRequestListener from interface to abstract class, I extend NearbyClient with EndpointDiscoveryListener and declare inner class…
1
vote
1 answer

how to overcome deprecation?

if i have developed an app in older ios version and in future if lot of classes and methods are deprecated...how do i overcome this to make my app run in all version... The basic solution is checking whether the class exists??that is making use of…
user2017
  • 73
  • 7
1
vote
1 answer

NSDirectoryFileType is deprecated. What's the replacement?

I have an NSOutlineView that displays a directory hierarchy (not necessarily local). I want to display the icon for each item in the list, so I'm using NSWorkspace's -iconForFileType: method, since I can't use -iconForFile: as the path isn't always…
d11wtq
  • 34,788
  • 19
  • 120
  • 195
1
vote
2 answers

Annotating methods with no implementation

In the interest of clean and beautiful code, I've been looking for an answer to a question that's popped up whist documenting my latest project. Often times, there will be an abstract class or interface with methods requiring implementation; and…
justis
  • 447
  • 7
  • 13
1
vote
2 answers

HTML replace Font tag

I have read that the Font tag has been deprecated since 2013. What tag should I use instead? For example, how should I replace this:

some text here Thank you in advance!

João Silva
  • 531
  • 4
  • 21
  • 40
1
vote
1 answer

For loop deprecated on xCode 7.3

I realized that for loops are deprecated with the old system but have not been able to figure out what the problem is .. I've created this for loop in objective c now I would like to know if this with the introduction of xCode 7.3 way implement the…
kAiN
  • 2,559
  • 1
  • 26
  • 54