Questions tagged [deprecation-warning]

A deprecation warning indicates that a method is obsolete. Using a newer method (which has been provided in the meanwhile) is preferred.

A deprecation warning indicates that a method, property or other software feature is obsolete. Using a newer feature (which has been provided in the meanwhile) is preferred.

547 questions
8
votes
3 answers

Deprecations On Overriding Method

I found something weird in Eclipse IDE. Let's say I have the following classes: public class Super { @Deprecated public void doNotUseThisMethod() { // do magic } } public class Sub extends Super{ @Override public void…
Stefan S.
  • 3,950
  • 5
  • 25
  • 77
8
votes
1 answer

How should I be using/not using deprecated methods in Android

I have gone too long without asking this question. I have come across many methods in Android which are deprecated, but still work in newer versions of the API. So what is the risk of using a deprecated method as long as it works? Here's a more…
8
votes
1 answer

Numpy/scipy deprecation warning for "rank"

I have some python code which uses numpy and have run this successfully for a year or more. I suddenly got the following error last week: /usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py:2507: VisibleDeprecationWarning: `rank` is…
218
  • 1,754
  • 7
  • 27
  • 38
8
votes
1 answer

Glut deprecation in Mac OSX 10.9, IDE: QT Creator

I was trying to build an opengl program on qt creator, installed on my mac, with osx 10.9. I got several warnings on glut functions about its deprecation in osx10.9, a sample error message is like: 'glutInit' is deprecated: first deprecated in OS X…
Clueless Gorilla
  • 1,199
  • 2
  • 10
  • 16
8
votes
2 answers

Is there way to check feature deprecation against django version?

As some features get deprecated with new versions of Django, is there a way to check for that on an existing project code say on github. Could a tool do that. Is there a way to detect that through testcases. Would it be possible to do the same…
jethar
  • 2,223
  • 2
  • 22
  • 19
7
votes
1 answer

Ruby 2.7 specific warning not showing

We want to update our codebase to Ruby 3 and one of the biggest breaking change is the mix of keyword arguments with arguments in methods. This warning should show up warning: Using the last argument as keyword parameters is deprecated; maybe **…
Laurent
  • 2,284
  • 2
  • 21
  • 41
7
votes
1 answer

Can anyone motivate why Arrow (Kotlin) choose to deprecate higher-kinded types?

Digging into the codebase of Arrow I found this deprecation warning above higher-kinded types. Higher Kinded types and their related type classes will no longer be supported after Arrow 0.13.0. Most relevant APIs are now concrete over the data…
Luca Piccinelli
  • 379
  • 1
  • 17
7
votes
2 answers

lint usages of functions with @deprecated decorator

Is there a linter that detects usages of functions that are marked as deprecated with the @deprecated decorator from the deprecated package? e.g. in from deprecated import deprecated def realfun(): print('Hey there') @deprecated(reason="this…
pseyfert
  • 3,263
  • 3
  • 21
  • 47
7
votes
1 answer

How do I detect and invoke a function when a python enum member is accessed

I have an enum for which some of the members are deprecated: from enum import Enum class Foo(Enum): BAR = "bar" BAZ = "baz" # deprecated How do it get the following behavior: When somebody writes Foo.BAR, everything behaves…
RunOrVeith
  • 4,487
  • 4
  • 32
  • 50
7
votes
1 answer

Is it bad practice to override a deprecated method?

Is this code bad practice as the method show() is deprecated? Is it okay to override here? public class Window extends JFrame { public Window() { // Do things. } public void show() { // <- Comes up with a warning as deprecated…
Parzavil
  • 388
  • 3
  • 13
7
votes
4 answers

Show warning when a class is imported in python

I have a class in a different module and I want to show a DeprecationWarning when that class is imported. What will be the right way to do so? module 1 contains - class Test: pass module 2 contains - from module1 import Test #this line should…
Nirmal
  • 116
  • 1
  • 4
7
votes
0 answers

WebSQL has increasing browser support. What's its future?

I've done some looking around, and found that WebSQL seems to have a somewhat rocky future right now. On the one hand, it's apparently widely looked down on as a solution because of the fact that literally every actual implementation simply uses…
7
votes
0 answers

Python: how to show DeprecationWarnings only when triggered by my code

Is there a way to show DeprecationWarnings if and only if they are triggered by my code (i.e, if I can actually fix them)? For example, if the foo module is deprecated (and calls warnings.warn on import), I would like to see the warning if the…
Nikratio
  • 2,338
  • 2
  • 29
  • 43
7
votes
2 answers

Recommended practice for using import_module in django >= 1.8

In one of my django tests, I use django.utils.importlib.import_module similarly to how it is used here. On upgrading to django 1.8, I get a deprecation warning test_views.py:20: RemovedInDjango19Warning: django.utils.importlib will be removed in…
mjandrews
  • 2,392
  • 4
  • 22
  • 39
7
votes
3 answers

iOS UUID deprecated corebluetooth

I am modifying an app that discovers a device via Bluetooth BLE in order to plot the values into a graph. It all works fine (thanks to the help of one of you in the past week). The app was initially written by my husband a while ago and during the…
Clararhea
  • 159
  • 1
  • 2
  • 13