Oh, you added a method to an interface but forgot to rev the version number, API tools can help you with a nice quickfix!
比如,你给一个接口增加了一个方法但却忘记增加版本号,API工具能帮助你又快又好地解决这个问题!
Correcting the cause of some problems is trivial, so the rule author may provide a "Quickfix" routine.
修正某些问题的诱因是琐碎的,所以规则的作者可能会提供一个“快速修复”程序。
If the Quickfix menu option is enabled, selecting it will walk you through a process to correct the problem (Figure 19).
如果快速修补菜单选项有效的话,那么如果您选中它,就将启动一个修正问题的处理过程(请参见图19所示)。
If you have syntax errors, it won't be able to interpret your code correctly, and won't be able to provide you with a QuickFix.
如果有语法错误,那么它就无法正确解释您的代码,从而无法为您提供QuickFix。
The "x", of course, means there is a problem, but the light bulb means Eclipse has a QuickFix: one or more Suggestions for solving the problem.
“x”当然意味着存在问题,但是灯泡表示Eclipse能提供QuickFix:即解决此问题的一条或多条建议。
Next, use Eclipse's QuickFix (by clicking greet and pressing Ctrl-1, for example) to generate a method stub for greet , and add code to the stub as follows.
接下来,用Eclipse的quickfix为greet生成一个方法存根,然后为存根加入代码。
Next, use Eclipse's QuickFix (by clicking on greet and pressing Ctrl-1, for example) to generate a method stub for greet , and add code to the stub as follows.
接下来,使用Eclipse的QuickFix(比如,通过单击greet并按Ctrl - 1)为greet生成一个方法存根,并将代码添加到该存根,如下所示。
Next, use Eclipse's QuickFix (by clicking on greet and pressing Ctrl-1, for example) to generate a method stub for greet , and add code to the stub as follows.
接下来,使用Eclipse的QuickFix(比如,通过单击greet并按Ctrl - 1)为greet生成一个方法存根,并将代码添加到该存根,如下所示。
应用推荐