Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does strikethrough mean in Netbeans?

What does it mean when things are written in strikethrough in Netbeans, like getObject in the example below?

enter image description here

Version: Netbeans 6.8

like image 689
Jean-François Corbett Avatar asked Sep 20 '11 13:09

Jean-François Corbett


People also ask

What does strikethrough mean in Java?

strikethrough means that the method is deprecated and would not be available in next versions. You have to use other methods instead of this.

What does crossed out code mean?

If you can see your new CSS in the Styles pane, but your new CSS is crossed out, it means that there's some other CSS that is overriding your new CSS. In CSS terminology this concept is called Specificity. Chrome DevTools can help you find the old CSS that is causing your new CSS to not be applied.

How can I see errors in NetBeans?

To identify potential errors in your Java code with the FindBugs configuration, complete the following steps: Open the library project in the NetBeans IDE and choose Source > Inspect from the main toolbar. In the Scope drop-down list of the Inspect dialog box, select Current Project (library) .

How do I format NetBeans?

To format all the code in NetBeans, press Alt + Shift + F. If you want to indent lines, select the lines and press Alt + Shift + right arrow key, and to unindent, press Alt + Shift + left arrow key.


1 Answers

The method has been deprecated (i.e. replaced by a newer method, which you should probably use instead).

In other words, for some backward compatibility, the method you're calling is still in the API, but has been replaced by newer code/methods. Often this happens when an API is redesigned or updated, especially when a given API update changes its fundamental approach to a problem. When that happens, the old way of doing something will be deprecated, and you are therefore encouraged (though not required, so long as your code compiles and runs) to use the new stuff.

like image 144
jefflunt Avatar answered Oct 20 '22 11:10

jefflunt