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.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@ -237,16 +238,16 @@ public abstract class ServerResourceBase implements ServerResource {
|
|||||||
|
|
||||||
protected List<String> getWarnings() {
|
protected List<String> getWarnings() {
|
||||||
synchronized (_warnings) {
|
synchronized (_warnings) {
|
||||||
final ArrayList<String> results = _warnings;
|
final List<String> results = new LinkedList<String>(_warnings);
|
||||||
_warnings = new ArrayList<String>();
|
_warnings.clear();
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected List<String> getErrors() {
|
protected List<String> getErrors() {
|
||||||
synchronized (_errors) {
|
synchronized (_errors) {
|
||||||
final ArrayList<String> result = _errors;
|
final List<String> result = new LinkedList<String>(_errors);
|
||||||
_errors = new ArrayList<String>();
|
_errors.clear();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user