Skip to content

Commit

Permalink
perf($ResponseBodyBean): annotated with @value
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed May 8, 2020
1 parent bf47226 commit 0c3c94b
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
import com.jmsoftware.common.exception.BaseException;
import com.jmsoftware.common.exception.BusinessException;
import lombok.Builder;
import lombok.Getter;
import lombok.NonNull;
import lombok.ToString;
import lombok.Value;

import java.io.Serializable;
import java.util.Date;
Expand All @@ -22,9 +21,8 @@
* @author Johnny Miller (鍾俊), e-mail: johnnysviva@outlook.com
* @date 2/27/20 9:24 AM
*/
@Getter
@Value
@Builder
@ToString
@SuppressWarnings("unused")
public class ResponseBodyBean<ResponseBodyDataType> implements Serializable {
/**
Expand All @@ -36,19 +34,19 @@ public class ResponseBodyBean<ResponseBodyDataType> implements Serializable {
* The Timestamp.
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private final Date timestamp;
Date timestamp;
/**
* Default status is OK[200]
*/
private final Integer status;
Integer status;
/**
* The Message.
*/
private final String message;
String message;
/**
* The Data.
*/
private final ResponseBodyDataType data;
ResponseBodyDataType data;

/**
* <p>Respond to client with IUniversalStatus (status may be OK or other).</p>
Expand Down

0 comments on commit 0c3c94b

Please sign in to comment.