Skip to content

Commit

Permalink
[Improve] Add code quality rules
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchunfu committed Oct 22, 2023
1 parent 39e82fc commit 9408179
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions community/submit_guide/code-style-and-quality-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,26 @@ to reduce code line depth and improve readability like follows:
}
```

### 3.13 `Deprecated` Annotation

- Negative demo:

```java
@deprecated
public void process(String input) {
...
}
```

- Positive demo:

```java
@Deprecated
public void process(String input) {
...
}
```

## 4 Exception Processing

This `streampark-console-service` module is the core module for processing user requests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,26 @@ sidebar_position: 3
}
```

### 3.13 `Deprecated` 注解

- 负面示例:

```java
@deprecated
public void process(String input) {
...
}
```

- 正面示例:

```java
@Deprecated
public void process(String input) {
...
}
```

## 4 异常处理

`streampark-console-service` 模块是处理用户请求的核心模块。
Expand Down

0 comments on commit 9408179

Please sign in to comment.