mirror of
https://github.com/apache/jclouds.git
synced 2025-02-11 12:36:13 +00:00
Iteration order of HashSet/Map changes between JRE 7 and JRE 8, breaking tests. Switch to LinkedHashSet/Map.
This commit is contained in:
parent
354fee9c42
commit
143b5e7e1d
@ -161,7 +161,7 @@ public class GoogleComputeEngineService extends BaseComputeService {
|
||||
}
|
||||
};
|
||||
|
||||
Set<AtomicReference<Operation>> operations = Sets.newHashSet();
|
||||
Set<AtomicReference<Operation>> operations = Sets.newLinkedHashSet();
|
||||
for (Firewall firewall : firewallApi.list().concat().filter(firewallBelongsToNetwork)) {
|
||||
operations.add(new AtomicReference<Operation>(firewallApi.delete(firewall.getName())));
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public class CreateNodesWithGroupEncodedIntoNameThenAddToSet extends
|
||||
|
||||
String projectName = userProject.get();
|
||||
FirewallApi firewallApi = api.getFirewallApiForProject(projectName);
|
||||
Set<AtomicReference<Operation>> operations = Sets.newHashSet();
|
||||
Set<AtomicReference<Operation>> operations = Sets.newLinkedHashSet();
|
||||
|
||||
for (Integer port : templateOptions.getInboundPorts()) {
|
||||
String name = naming.name(port);
|
||||
|
Loading…
x
Reference in New Issue
Block a user