This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev
in repository 
https://gitbox.apache.org/repos/asf/incubator-streampark-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new 1aa39de  [Hotfix] Update the code style and quality guide. (#232)
1aa39de is described below

commit 1aa39de7daca1c51a497bc3bad0b18f70ea0a7b4
Author: Yuepeng Pan <[email protected]>
AuthorDate: Tue Sep 5 20:07:37 2023 +0800

    [Hotfix] Update the code style and quality guide. (#232)
---
 community/submit_guide/code-style-and-quality-guide.md | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/community/submit_guide/code-style-and-quality-guide.md 
b/community/submit_guide/code-style-and-quality-guide.md
index 076c0b4..f43d6b1 100644
--- a/community/submit_guide/code-style-and-quality-guide.md
+++ b/community/submit_guide/code-style-and-quality-guide.md
@@ -193,9 +193,19 @@ sidebar_position: 3
 
 4. Variables that have not been reassigned must also be declared as <mark> 
final </mark> types.
 
+5. About the arrangement order of `constant/variable` lines  
+
+   Sort the variable lines in the class in the order of
+   1. `public static final V`, `static final V`,`protected static final V`, 
`private static final V`
+   2. `public static v`, `static v`,`protected static v`, `private static v`
+   3. `public v`, `v`, `protected v`, `private v`
+
+
 ### 3.3 Methods Rule
 
-1. Sort the methods in the class in the order of `public`, `protected`, and 
`private`
+1. Sort the methods in the class in the order of `public`, `protected`, 
`private`
+
+   Static methods of a class can be placed after non-static methods and sorted 
according to consistent method visibility.
 
 2. When there are restrictions on the method, the parameters and returned 
values of the method need to be annotated with `@Nonnull` or `@Nullable` 
annotations and constraints.
 

Reply via email to