From 66e18db02c39c6118624ed9d2f84c1a7cc39725a Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sun, 21 May 2023 13:21:02 +0800 Subject: [PATCH] build: warning call super --- .../main/java/io/metersphere/api/domain/ApiDefinitionBlob.java | 2 ++ .../src/main/java/io/metersphere/api/domain/ApiReportBlob.java | 2 ++ .../main/java/io/metersphere/api/domain/ApiScenarioBlob.java | 2 ++ .../java/io/metersphere/api/domain/ApiScenarioReportDetail.java | 2 ++ .../main/java/io/metersphere/api/domain/ApiTestCaseBlob.java | 2 ++ .../plugin/platform/dto/PlatformCustomFieldItemDTO.java | 2 ++ 6 files changed, 12 insertions(+) diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java index e897d94993..b315532168 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiDefinitionBlob.java @@ -8,12 +8,14 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import jakarta.validation.constraints.NotBlank; import lombok.Data; +import lombok.EqualsAndHashCode; import java.io.Serializable; @ApiModel(value = "接口定义详情内容") @TableName("api_definition_blob") @Data +@EqualsAndHashCode(callSuper=false) public class ApiDefinitionBlob extends ApiDefinition implements Serializable { private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java index a5053da904..a96ed4c4d5 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiReportBlob.java @@ -8,12 +8,14 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import jakarta.validation.constraints.NotBlank; import lombok.Data; +import lombok.EqualsAndHashCode; import java.io.Serializable; @ApiModel(value = "API/CASE执行结果详情") @TableName("api_report_blob") @Data +@EqualsAndHashCode(callSuper=false) public class ApiReportBlob extends ApiReport implements Serializable { private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java index 470a6da832..a02e586f9a 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioBlob.java @@ -8,12 +8,14 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import jakarta.validation.constraints.NotBlank; import lombok.Data; +import lombok.EqualsAndHashCode; import java.io.Serializable; @ApiModel(value = "场景步骤详情") @TableName("api_scenario_blob") @Data +@EqualsAndHashCode(callSuper=false) public class ApiScenarioBlob extends ApiScenario implements Serializable { private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java index 7d82d82465..1bc2e6a615 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiScenarioReportDetail.java @@ -10,12 +10,14 @@ import io.swagger.annotations.ApiModelProperty; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; import lombok.Data; +import lombok.EqualsAndHashCode; import java.io.Serializable; @ApiModel(value = "场景报告步骤结果") @TableName("api_scenario_report_detail") @Data +@EqualsAndHashCode(callSuper=false) public class ApiScenarioReportDetail extends ApiScenarioReport implements Serializable { private static final long serialVersionUID = 1L; diff --git a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java index 341fcd77d0..89378defdb 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java +++ b/backend/framework/domain/src/main/java/io/metersphere/api/domain/ApiTestCaseBlob.java @@ -8,12 +8,14 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import jakarta.validation.constraints.NotBlank; import lombok.Data; +import lombok.EqualsAndHashCode; import java.io.Serializable; @ApiModel(value = "接口用例详情") @TableName("api_test_case_blob") @Data +@EqualsAndHashCode(callSuper=false) public class ApiTestCaseBlob extends ApiTestCase implements Serializable { private static final long serialVersionUID = 1L; diff --git a/backend/framework/plugin/src/main/java/io/metersphere/plugin/platform/dto/PlatformCustomFieldItemDTO.java b/backend/framework/plugin/src/main/java/io/metersphere/plugin/platform/dto/PlatformCustomFieldItemDTO.java index 2b04fc40f6..13a4526999 100644 --- a/backend/framework/plugin/src/main/java/io/metersphere/plugin/platform/dto/PlatformCustomFieldItemDTO.java +++ b/backend/framework/plugin/src/main/java/io/metersphere/plugin/platform/dto/PlatformCustomFieldItemDTO.java @@ -1,8 +1,10 @@ package io.metersphere.plugin.platform.dto; import lombok.Data; +import lombok.EqualsAndHashCode; @Data +@EqualsAndHashCode(callSuper=false) public class PlatformCustomFieldItemDTO extends CustomFieldDTO { private Object value; private String key;