-
Notifications
You must be signed in to change notification settings - Fork 73
Annotation #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Annotation #5
Conversation
java/注解浅析.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 “解答” 可以去掉,换成一句舒服点的过渡,比如“本篇文章我们将一起来解答这些问题。”
java/注解浅析.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里缺了一部分?
删除多余的语句,增加遗漏的部分
java/注解浅析.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Override的作用准确来说应该是:
1.帮助检查是否正确的复写了父类中的已有方法(如果不小心拼写错误或者方法签名对不上被覆盖的方法,编辑器都会发出警告信息)
2.表示当前方法定义将覆盖超类的方法。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这块我又重新编辑了一下
java/注解浅析.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下面这个部分建议把代码放IDE中,把代码和相关信息截图出来比代码加文字直观些
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已经修改了,确实有截图直观些
java/注解浅析.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议把自定义注解的例子和注解处理相结合,形成一个完整使用环节,比较容易理解
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这部分我将自定义的注解替换成了运行时处理注解部分定义的注解了,但是没有合并。
增加 Annotation 解析