Skip to content

Commit

Permalink
Use cloned of the array.
Browse files Browse the repository at this point in the history
  • Loading branch information
sonus21 committed May 16, 2020
1 parent c9bf316 commit e97e4fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -296,7 +296,7 @@ public List<MessageConverter> getMessageConverters() {

public void setMessageConverters(List<MessageConverter> messageConverters) {
notEmpty(messageConverters, "messageConverters list cannot be empty or null");
this.messageConverters = messageConverters;
this.messageConverters = new ArrayList<>(messageConverters);
addDefaultMessageConverter();
}
}
Expand Up @@ -17,7 +17,9 @@
package com.github.sonus21.rqueue.models.aggregator;

import com.github.sonus21.rqueue.models.db.JobRunTime;
import lombok.ToString;

@ToString
public class TasksStat {
public long discarded = 0;
public long success = 0;
Expand Down

0 comments on commit e97e4fd

Please sign in to comment.