Commit 06e1423f by Johannes Edmeier

Fix findbugs warning

parent dc940c12
...@@ -120,11 +120,11 @@ public class MailNotifier { ...@@ -120,11 +120,11 @@ public class MailNotifier {
} }
public void setTo(String[] to) { public void setTo(String[] to) {
this.to = to; this.to = Arrays.copyOf(to, to.length);
} }
public void setCc(String[] cc) { public void setCc(String[] cc) {
this.cc = cc; this.cc = Arrays.copyOf(cc, cc.length);
} }
public void setFrom(String from) { public void setFrom(String from) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment