Skip to content
This repository was archived by the owner on Jun 29, 2018. It is now read-only.

Commit 06e1423

Browse files
committed
Fix findbugs warning
1 parent dc940c1 commit 06e1423

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/notify

spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/notify/MailNotifier.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ public void setSender(JavaMailSender sender) {
120120
}
121121

122122
public void setTo(String[] to) {
123-
this.to = to;
123+
this.to = Arrays.copyOf(to, to.length);
124124
}
125125

126126
public void setCc(String[] cc) {
127-
this.cc = cc;
127+
this.cc = Arrays.copyOf(cc, cc.length);
128128
}
129129

130130
public void setFrom(String from) {

0 commit comments

Comments
 (0)