Java - Deprecated method - What to do?

后端 未结 3 1708
悲哀的现实
悲哀的现实 2021-01-06 09:25

I am following a series of Java tutorials in an attempt to learn it. I have a question about tutorial 72.

Link: http://www.youtube.com/watch?v=9z_8yEv7nIc&featur

3条回答
  •  既然无缘
    2021-01-06 09:57

    You'd need to update the setListData method to take the new parameter type (and any other code that was expecting an Object[], including methods, possible things that iterate over the array, etc.) Just because something is deprecated doesn't mean it's removed, though.

    What to do depends on your immediate goal: is it to learn the material, or to learn the material and update all the source to compile without warnings.

提交回复
热议问题