Use consistent class design
Update all classes so that inner classes are always last. Also ensure that utility classes are always final and have a private constructor and make exceptions final whenever possible. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
0ad0f341bd
commit
eeebd51f57
@@ -37,7 +37,7 @@ public class MailSendException extends MailException {
|
||||
private final transient Map<Object, Exception> failedMessages;
|
||||
|
||||
@Nullable
|
||||
private Exception[] messageExceptions;
|
||||
private final Exception[] messageExceptions;
|
||||
|
||||
|
||||
/**
|
||||
@@ -56,6 +56,7 @@ public class MailSendException extends MailException {
|
||||
public MailSendException(String msg, @Nullable Throwable cause) {
|
||||
super(msg, cause);
|
||||
this.failedMessages = new LinkedHashMap<>();
|
||||
this.messageExceptions = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user