perf: 抑制测试代码的一些警告

This commit is contained in:
zhouxy108 2025-04-02 15:21:32 +08:00
parent 0b0036b62a
commit 615837ac27
3 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,7 @@ import java.util.Comparator;
import java.util.List;
import java.util.function.Function;
@SuppressWarnings("deprecation")
class ValidatableStringRecordTests {
private static final Logger log = LoggerFactory.getLogger(ValidatableStringRecordTests.class);
@ -83,6 +84,7 @@ class User {
}
}
@SuppressWarnings("deprecation")
@ValueObject
class Email extends ValidatableStringRecord<Email> {
private Email(String value) {
@ -95,6 +97,7 @@ class Email extends ValidatableStringRecord<Email> {
}
}
@SuppressWarnings("deprecation")
@ValueObject
class Username extends ValidatableStringRecord<Username> {
private Username(String username) {

View File

@ -34,6 +34,7 @@ import lombok.extern.slf4j.Slf4j;
import xyz.zhouxy.plusone.commons.exception.business.BizException;
@Slf4j
@SuppressWarnings("null")
public
class CustomUnifiedResponseFactoryTests {

View File

@ -32,6 +32,7 @@ import lombok.extern.slf4j.Slf4j;
import xyz.zhouxy.plusone.commons.exception.business.BizException;
@Slf4j
@SuppressWarnings("null")
public
class UnifiedResponseTests {