Java “// TODO 自动生成的方法存根”是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9712810/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-16 06:33:36  来源:igfitidea点击:

What does "// TODO Auto Generated method stub" mean?

javaeclipse

提问by Cole

I see it all the time and can't find a simple description.

我一直看到它,找不到简单的描述。

采纳答案by Oliver Charlesworth

It means that your IDE (or some other tool) has automatically generated a method for you, but has left the body blank to be filled in by you (this is known as a "stub").

这意味着您的 IDE(或其他一些工具)已自动为您生成一个方法,但将主体留空以供您填写(这称为“存根”)。

In your case, it was probably Eclipse.

在您的情况下,它可能是 Eclipse。

回答by Chetter Hummin

This is a comment that's added by Eclipse (an IDE) when you have eclipse create a method body for you. It's meant as a reminder for the programmer that he/she needs to code something in the method

这是当您让 Eclipse 为您创建方法体时由 Eclipse(一个 IDE)添加的注释。这是为了提醒程序员他/她需要在方法中编写一些代码

回答by waldenlaker

These stubs mean that they are inherited abstract methods from super class whose implementations need to be crammed by you.

这些存根意味着它们是从超类继承的抽象方法,它们的实现需要由您来填充。

回答by Kolis

The TODO, could refer to:

TODO,可以参考:

Blockquote

块引用

1 Talk openly develop openly

1开诚布公 开诚布公

2 todo(Noun)A task yet to be done; an item on a to-do list.

2 todo(名词)尚未完成的任务;待办事项清单上的一项。

3 Technical Order Distribution Office

3技术订单配送处

Blockquote

块引用