mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 11:04:00 +01:00
Merge branch 'bugfix/CID-1230585'
This commit is contained in:
commit
ae4d49810e
@ -26,6 +26,7 @@ import java.net.SocketException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.Enumeration;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@ -237,16 +238,16 @@ public abstract class ServerResourceBase implements ServerResource {
|
||||
|
||||
protected List<String> getWarnings() {
|
||||
synchronized (_warnings) {
|
||||
final ArrayList<String> results = _warnings;
|
||||
_warnings = new ArrayList<String>();
|
||||
final List<String> results = new LinkedList<String>(_warnings);
|
||||
_warnings.clear();
|
||||
return results;
|
||||
}
|
||||
}
|
||||
|
||||
protected List<String> getErrors() {
|
||||
synchronized (_errors) {
|
||||
final ArrayList<String> result = _errors;
|
||||
_errors = new ArrayList<String>();
|
||||
final List<String> result = new LinkedList<String>(_errors);
|
||||
_errors.clear();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user