最后,得到带有代码和注释的最终版本。
And finally we have the last version, with code and comments.
您将在该文件中发现一个已注释的示例条目。
添加了注释的Jython方法如下例所示。
启用对带有Spring注释的类进行自动扫描。
Enables automatic scan for the class that has Spring annotations.
当然对于本例这样简单的程序,是无需大量的注释的。
For a program this simple, extensive comments are usually not necessary.
在注释的优势之外,我看到了它们过度使用的两个主要不足。
Despite the benefits of annotations, I see two main drawbacks to their (over) use.
注释应该和它们所注释的代码一样是书写良好且清晰明了。
The comments should be well-written and clear, just like the code they are annotating.
例如,假设您希望向“books”模型添加用于注释的字段。
For example, suppose you want to add a field to your "books" model for notes.
展品的注释告诉参观者们“带一小片天空回家”。
The exhibition notes tell visitors to “take home a piece of sky”.
但注释和其他事情一样也是需要技巧的。
它也有武侠风格的注释。
这段代码进行了良好的注释。
剥离注释是非常简单的过程。
同样,这些代码也进行了良好的注释。
代码风格与注释和XML的比较。
c风格的注释全都可以使用,如第7行所示。
首先,派生的方面可以选择注释类型。
尽管清单3看起来很奇怪,但这是注释类型所要求的格式。
As odd as Listing 3 might look, it's what you need in annotation types.
添加开发视图名(注释是可选的)并点击Next(图7)。
Add the development view name (comment is optional) and click Next (Figure 7).
可以以多种方式为toString的生成定义注释。
You can define annotations for toString generation in many different ways.
在这个项目中,随着工作的继续,我们放弃了注释。
第五列是用户的全名,或者是注释。
The fifth column contains the user's full name, or a comment.
此注释是组合键拼图中的第一块。
This annotation is the first piece of the composite key jigsaw puzzle.
当您创建或者查看注释时,Annotation窗口会在单独的窗口中打开。
When you create or view annotations, the Annotation window opens in a separate window.
本系列文章的第2部分将研究定制注释。
Part 2 in this article series will explore custom annotations.
将版本号放置到注释中是管理这个生命周期的一种简单方法。
Putting a version number in a comment is an easy way to manage this lifecycle.
注释:这些异常是针对在运行期间使用JNDI的。
Note: These exceptions are specific to using JNDI at run time.
最为重要的一个新特性是支持注释。
One of the most important new features is support for annotations.
完成数据源模型的注释。
请注意每条语句旁边的注释。
Please pay careful attention to the comment beside each statement.
应用推荐