mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-08 16:57:09 +08:00
style: 调整代码风格 null == xx => xx == null(更符合大众风格)
This commit is contained in:
@@ -70,7 +70,7 @@ public abstract class AbstractLogHandler implements LogHandler {
|
||||
return false;
|
||||
}
|
||||
Log classLog = AnnotationUtil.getAnnotation(targetClass, Log.class);
|
||||
return null == classLog || !classLog.ignore();
|
||||
return classLog == null || !classLog.ignore();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -93,7 +93,7 @@ public class LogRequest {
|
||||
this.address = (includes.contains(Include.IP_ADDRESS))
|
||||
? ExceptionUtils.exToNull(() -> IpUtils.getIpv4Address(this.ip))
|
||||
: null;
|
||||
if (null == this.headers) {
|
||||
if (this.headers == null) {
|
||||
return;
|
||||
}
|
||||
String userAgentString = this.headers.entrySet()
|
||||
|
@@ -76,7 +76,7 @@ public class LogInterceptor implements HandlerInterceptor {
|
||||
Instant endTime = Instant.now();
|
||||
logHandler.accessLogFinish(AccessLogContext.builder().endTime(endTime).build());
|
||||
LogRecord.Started startedLogRecord = logTtl.get();
|
||||
if (null == startedLogRecord) {
|
||||
if (startedLogRecord == null) {
|
||||
return;
|
||||
}
|
||||
// 结束日志记录
|
||||
|
Reference in New Issue
Block a user