Skip to content
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

关于包名的一个疑问 #12

Closed
Switch-vov opened this issue Oct 12, 2017 · 3 comments
Closed

关于包名的一个疑问 #12

Switch-vov opened this issue Oct 12, 2017 · 3 comments
Labels

Comments

@Switch-vov
Copy link

命名风格第九条是这样说的

  1. 【强制】包名统一使用小写,点分隔符之间有且仅有一个自然语义的英语单词。包名统一使用单数形式,但是类名如果有复数含义,类名可以使用复数形式。

但是常量定义第4条是这样说的

  1. 【推荐】常量的复用层次有五层:跨应用共享常量、应用内共享常量、子工程内共享常量、包内共享常量、类内共享常量。 1) 跨应用共享常量:放置在二方库中,通常是client.jar中的constant目录下。 2) 应用内共享常量:放置在一方库中,通常是modules中的constant目录下。

请问这个modules是指包名吗?

@bxb100
Copy link

bxb100 commented Oct 15, 2017

不是

@SeanCai SeanCai added the Rules label Oct 18, 2017
@xuantan
Copy link
Collaborator

xuantan commented Oct 20, 2017

@yangguanbao 看下

@gujin520
Copy link
Contributor

为了避免误解,做了修正。感谢你对《阿里巴巴Java开发手册》的支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants