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

xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git


The following commit(s) were added to refs/heads/main by this push:
     new c47772f  Update 1-code-suggestions.md (#429)
c47772f is described below

commit c47772f9866dc06e9d7597f85b69edbaba070bac
Author: kaitoShy <[email protected]>
AuthorDate: Thu Jan 6 17:12:45 2022 +0800

    Update 1-code-suggestions.md (#429)
---
 community/1-code-suggestions.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/community/1-code-suggestions.md b/community/1-code-suggestions.md
index 0224a55..41796d0 100644
--- a/community/1-code-suggestions.md
+++ b/community/1-code-suggestions.md
@@ -29,15 +29,15 @@ cover: "/img/architecture/shenyu-framework.png"
 
 ## Object
 
-* Ues Optional transform Null.
+* Use Optional transform Null.
 
 > Optional.ofNullable(xxx).orElse(obj)
 
-* Ues Objects Judgment Null Or NotNull.
+* Use Objects Judgment Null Or NotNull.
 
 > Objects.isNull(obj) OR Objects.nonNull(obj)
 
-* Ues `Objects.equals` Judgment are they equal.
+* Use `Objects.equals` Judgment are they equal.
 
 > Objects.equals(obj1, obj2)
 
@@ -58,7 +58,7 @@ for () {
 
 * Use `LinkedList` when you need to add or delete elements, Else use 
`ArrayList`.
 
-* Ues `org.apache.commons.collections4.CollectionUtils` Judgment Is empty Or 
Not empty.
+* Use `org.apache.commons.collections4.CollectionUtils` Judgment Is empty Or 
Not empty.
 
 > CollectionUtils.isEmpty(list) or CollectionUtils.isNotEmpty(data)
 
@@ -79,7 +79,7 @@ while (iter.hasNext()) {
 
 ## String
 
-* Ues `org.apache.commons.lang3.StringUtils` Judgment Is empty Or Not empty.
+* Use `org.apache.commons.lang3.StringUtils` Judgment Is empty Or Not empty.
 
 > StringUtils.isEmpty(list) or StringUtils.isNotEmpty(data)
 
@@ -214,4 +214,4 @@ try {
 * Judge is Null or not, and return Optional wrapped object, below are some 
representative examples:    
   current : ```return null == a ? Optional.empty() : 
Optional.ofNullable(a.getXXX());```    
   recommendation : ```return Optional.ofNullable(a).map(e -> e.getXXX());```  
-  
\ No newline at end of file
+  

Reply via email to