Skip to content

Commit 0ac52c4

Browse files
committed
code-review
1 parent 248ade9 commit 0ac52c4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core-web/src/main/java/lazy/fast/code/core/web/exception/BaseUnCheckException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public abstract class BaseUnCheckException extends RuntimeException {
1515
/**
1616
* http状态码, ResultMsg中的code可以与此相同
1717
*/
18-
private HttpStatus httpStatus;
18+
private final HttpStatus httpStatus;
1919

20-
private ResultMsg resultMsg;
20+
private final ResultMsg resultMsg;
2121

2222
public BaseUnCheckException(HttpStatus httpStatus, ResultMsg resultMsg) {
2323
super(resultMsg.toString());

core-web/src/main/java/lazy/fast/code/core/web/orm/BaseController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
public abstract class BaseController<T extends BaseEntity> {
1313

14-
private BaseService<T> baseService;
14+
private final BaseService<T> baseService;
1515

1616
public BaseController(BaseService<T> baseService) {
1717
if (null == baseService) {

core-web/src/main/java/lazy/fast/code/core/web/orm/BaseServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
public abstract class BaseServiceImpl<T extends BaseEntity> implements BaseService<T> {
1818

19-
private BaseRepository<T> baseRepository;
19+
private final BaseRepository<T> baseRepository;
2020

2121
public BaseServiceImpl(BaseRepository<T> baseRepository) {
2222
if (null == baseRepository) {

demo/src/main/java/lazy/fast/code/demo/core/BaseEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@MappedSuperclass
1919
@Setter
2020
@Getter
21-
public abstract class BaseEntity extends lazy.fast.code.core.web.orm.BaseEntity {
21+
public abstract class BaseEntity extends lazy.fast.code.core.web.orm.BaseEntity<String> {
2222

2323
/**
2424
* 数据主键 - 自定义生成策略

0 commit comments

Comments
 (0)