forked from plusone/plusone-commons
perf: 抑制测试代码的一些警告
This commit is contained in:
parent
0b0036b62a
commit
615837ac27
@ -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) {
|
||||
|
@ -34,6 +34,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import xyz.zhouxy.plusone.commons.exception.business.BizException;
|
||||
|
||||
@Slf4j
|
||||
@SuppressWarnings("null")
|
||||
public
|
||||
class CustomUnifiedResponseFactoryTests {
|
||||
|
||||
|
@ -32,6 +32,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import xyz.zhouxy.plusone.commons.exception.business.BizException;
|
||||
|
||||
@Slf4j
|
||||
@SuppressWarnings("null")
|
||||
public
|
||||
class UnifiedResponseTests {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user