mirror of https://github.com/halo-dev/halo
Resolve some lombok warnings
parent
cb2e38fea9
commit
2a60e1cd20
|
@ -25,12 +25,6 @@ configurations {
|
|||
exclude module: 'spring-boot-starter-tomcat'
|
||||
}
|
||||
|
||||
annotationProcessor
|
||||
|
||||
compileOnly {
|
||||
extendsFrom annotationProcessor
|
||||
}
|
||||
|
||||
developmentOnly
|
||||
|
||||
runtimeClasspath {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package run.halo.app.model.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import run.halo.app.model.dto.base.OutputConverter;
|
||||
import run.halo.app.model.entity.Menu;
|
||||
|
||||
|
@ -11,6 +13,8 @@ import run.halo.app.model.entity.Menu;
|
|||
* @date 4/3/19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode
|
||||
@ToString
|
||||
public class MenuDTO implements OutputConverter<MenuDTO, Menu> {
|
||||
|
||||
private Integer id;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package run.halo.app.model.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package run.halo.app.model.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package run.halo.app.model.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import run.halo.app.model.dto.MenuDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -10,6 +12,8 @@ import java.util.List;
|
|||
* @date : 2019-04-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class MenuVO extends MenuDTO {
|
||||
|
||||
private List<MenuVO> children;
|
||||
|
|
Loading…
Reference in New Issue